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

Method write

packages/engine.io/lib/socket.ts:453–456  ·  view source on GitHub ↗

* Alias of {@link send}. * * @param data * @param options * @param callback

(data: RawData, options?: SendOptions, callback?: SendCallback)

Source from the content-addressed store, hash-verified

451 * @param callback
452 */
453 public write(data: RawData, options?: SendOptions, callback?: SendCallback) {
454 this.sendPacket("message", data, options, callback);
455 return this;
456 }
457
458 /**
459 * Sends a packet.

Callers 4

engine.io.jsFile · 0.45
setupFunction · 0.45
webtransport.mjsFile · 0.45
server.jsFile · 0.45

Calls 1

sendPacketMethod · 0.95

Tested by

no test coverage detected