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

Method except

lib/index.ts:836–838  ·  view source on GitHub ↗

* Excludes a room when emitting. * * @example * // the "foo" event will be broadcast to all connected clients, except the ones that are in the "room-101" room * io.except("room-101").emit("foo", "bar"); * * // with an array of rooms * io.except(["room-101", "room-102"]).emit("fo

(room: Room | Room[])

Source from the content-addressed store, hash-verified

834 * @return a new {@link BroadcastOperator} instance for chaining
835 */
836 public except(room: Room | Room[]) {
837 return this.sockets.except(room);
838 }
839
840 /**
841 * Sends a `message` event to all clients.

Callers 4

messaging-many.tsFile · 0.45
uws.tsFile · 0.45
namespaces.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected