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

Function emit

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

* Emits to all clients. * * @return Always true * @public

(
    ev: Ev,
    ...args: EventParams<EmitEvents, Ev>
  )

Source from the content-addressed store, hash-verified

33 * @public
34 */
35 public emit<Ev extends EventNames<EmitEvents>>(
36 ev: Ev,
37 ...args: EventParams<EmitEvents, Ev>
38 ): true {
39 return this.newBroadcastOperator().emit(ev, ...args);
40 }
41
42 /**
43 * Targets a room when emitting.

Callers

nothing calls this directly

Calls 2

newBroadcastOperatorMethod · 0.80
emitMethod · 0.65

Tested by

no test coverage detected