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

Method write

packages/socket.io/lib/index.ts:955–960  ·  view source on GitHub ↗

* Sends a `message` event to all clients. Alias of {@link send}. * * @return self

(...args: EventParams<EmitEvents, "message">)

Source from the content-addressed store, hash-verified

953 * @return self
954 */
955 public write(...args: EventParams<EmitEvents, "message">): this {
956 // This type-cast is needed because EmitEvents likely doesn't have `message` as a key.
957 // if you specify the EmitEvents, the type of args will be never.
958 this.sockets.emit("message" as any, ...args);
959 return this;
960 }
961
962 /**
963 * Sends a message to the other Socket.IO servers of the cluster.

Callers 7

_packetMethod · 0.45
writeToEngineMethod · 0.45
socket.tsFile · 0.45
initServerFunction · 0.45
entrypoint.jsFile · 0.45
index.jsFile · 0.45
index.jsFile · 0.45

Calls 1

emitMethod · 0.65

Tested by

no test coverage detected