unsubscribe

Bun

Symbol

ServerWebSocket.unsubscribe

unsubscribe(topic: string): void

Unsubscribes a client to the topic.

@param topic

The topic name.

ws.unsubscribe("chat");