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

Method in

packages/socket.io/lib/index.ts:904–906  ·  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

902 * @return a new {@link BroadcastOperator} instance for chaining
903 */
904 public in(room: Room | Room[]) {
905 return this.sockets.in(room);
906 }
907
908 /**
909 * Excludes a room when emitting.

Callers 5

utility-methods.tsFile · 0.45
messaging-many.tsFile · 0.45
getSocketsFunction · 0.45
index.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected