Munsubscribe
Bun

method

ServerWebSocket.unsubscribe

topic: string
): void;

Unsubscribes a client to the topic.

@param topic

The topic name.

ws.unsubscribe("chat");