* Excludes a room when broadcasting. * * @example * io.on("connection", (socket) => { * // the "foo" event will be broadcast to all connected clients, except the ones that are in the "room-101" room * // and this socket * socket.except("room-101").emit("foo", "bar"); *
(room: Room | Room[])
| 392 | * @return a new {@link BroadcastOperator} instance for chaining |
| 393 | */ |
| 394 | public except(room: Room | Room[]) { |
| 395 | return this.newBroadcastOperator().except(room); |
| 396 | } |
| 397 | |
| 398 | /** |
| 399 | * Sends a `message` event. |
nothing calls this directly
no test coverage detected