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

Method send

packages/socket.io/lib/socket.ts:415–418  ·  view source on GitHub ↗

* Sends a `message` event. * * This method mimics the WebSocket.send() method. * * @see https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/send * * @example * io.on("connection", (socket) => { * socket.send("hello"); * * // this is equivalent to * socke

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

Source from the content-addressed store, hash-verified

413 * @return self
414 */
415 public send(...args: EventParams<EmitEvents, "message">): this {
416 this.emit("message", ...args);
417 return this;
418 }
419
420 /**
421 * Sends a `message` event. Alias of {@link send}.

Callers

nothing calls this directly

Calls 1

emitMethod · 0.95

Tested by

no test coverage detected