MCPcopy Index your code
hub / github.com/socketio/socket.io / except

Method except

lib/socket.ts:487–489  ·  view source on GitHub ↗

* 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[])

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

newBroadcastOperatorMethod · 0.95

Tested by

no test coverage detected