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

Method broadcast

packages/socket.io/lib/socket.ts:768–770  ·  view source on GitHub ↗

* Sets a modifier for a subsequent event emission that the event data will only be broadcast to every sockets but the * sender. * * @example * io.on("connection", (socket) => { * // the “foo” event will be broadcast to all connected clients, except this socket * socket.broadcas

()

Source from the content-addressed store, hash-verified

766 * @return a new {@link BroadcastOperator} instance for chaining
767 */
768 public get broadcast() {
769 return this.newBroadcastOperator();
770 }
771
772 /**
773 * Sets a modifier for a subsequent event emission that the event data will only be broadcast to the current node.

Callers 2

emitMethod · 0.45
emitMethod · 0.45

Calls 1

newBroadcastOperatorMethod · 0.95

Tested by

no test coverage detected