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

Method write

lib/socket.ts:518–521  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

516 * @return self
517 */
518 public write(...args: EventParams<EmitEvents, "message">): this {
519 this.emit("message", ...args);
520 return this;
521 }
522
523 /**
524 * Writes a packet.

Callers

nothing calls this directly

Calls 1

emitMethod · 0.95

Tested by

no test coverage detected