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

Method broadcast

lib/socket.ts:861–863  ·  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

859 * @return a new {@link BroadcastOperator} instance for chaining
860 */
861 public get broadcast() {
862 return this.newBroadcastOperator();
863 }
864
865 /**
866 * 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