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

Function to

packages/socket.io-redis-streams-emitter/lib/index.ts:49–53  ·  view source on GitHub ↗

* Targets a room when emitting. * * @param room * @return BroadcastOperator * @public

(
    room: string | string[],
  )

Source from the content-addressed store, hash-verified

47 * @public
48 */
49 public to(
50 room: string | string[],
51 ): BroadcastOperator<EmitEvents, ServerSideEvents> {
52 return this.newBroadcastOperator().to(room);
53 }
54
55 /**
56 * Targets a room when emitting.

Callers

nothing calls this directly

Calls 2

newBroadcastOperatorMethod · 0.80
toMethod · 0.45

Tested by

no test coverage detected