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

Method write

lib/index.ts:867–872  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

865 * @return self
866 */
867 public write(...args: EventParams<EmitEvents, "message">): this {
868 // This type-cast is needed because EmitEvents likely doesn't have `message` as a key.
869 // if you specify the EmitEvents, the type of args will be never.
870 this.sockets.emit("message" as any, ...args);
871 return this;
872 }
873
874 /**
875 * Sends a message to the other Socket.IO servers of the cluster.

Callers 3

writeToEngineMethod · 0.45
socket.tsFile · 0.45
index.jsFile · 0.45

Calls 1

emitMethod · 0.65

Tested by

no test coverage detected