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

Method local

packages/socket.io/lib/socket.ts:783–785  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

781 * @return a new {@link BroadcastOperator} instance for chaining
782 */
783 public get local() {
784 return this.newBroadcastOperator().local;
785 }
786
787 /**
788 * Sets a modifier for a subsequent event emission that the callback will be called with an error when the

Callers

nothing calls this directly

Calls 1

newBroadcastOperatorMethod · 0.95

Tested by

no test coverage detected