* 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[])
| 485 | * @return a new {@link BroadcastOperator} instance for chaining |
| 486 | */ |
| 487 | public except(room: Room | Room[]) { |
| 488 | return this.newBroadcastOperator().except(room); |
| 489 | } |
| 490 | |
| 491 | /** |
| 492 | * Sends a `message` event. |
nothing calls this directly
no test coverage detected