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

Method in

lib/index.ts:816–818  ·  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

814 * @return a new {@link BroadcastOperator} instance for chaining
815 */
816 public in(room: Room | Room[]) {
817 return this.sockets.in(room);
818 }
819
820 /**
821 * 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