MCPcopy
hub / github.com/socketio/socket.io / in

Method in

packages/socket.io/lib/broadcast-operator.ts:73–75  ·  view source on GitHub ↗

* Targets a room when emitting. Similar to `to()`, but might feel clearer in some cases: * * @example * // disconnect all clients in the "room-101" room * io.in("room-101").disconnectSockets(); * * @param room - a room, or an array of rooms * @return a new {@link BroadcastOperat

(room: Room | Room[])

Source from the content-addressed store, hash-verified

71 * @return a new {@link BroadcastOperator} instance for chaining
72 */
73 public in(room: Room | Room[]) {
74 return this.to(room);
75 }
76
77 /**
78 * Excludes a room when emitting.

Callers

nothing calls this directly

Calls 1

toMethod · 0.95

Tested by

no test coverage detected