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

Method local

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

874 * @return a new {@link BroadcastOperator} instance for chaining
875 */
876 public get local() {
877 return this.newBroadcastOperator().local;
878 }
879
880 /**
881 * 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