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

Method send

packages/engine.io-client/lib/socket.ts:790–793  ·  view source on GitHub ↗

* Sends a message. Alias of {@link Socket#write}. * * @param {String} msg - message. * @param {Object} options. * @param {Function} fn - callback function. * @return {Socket} for chaining.

(msg: RawData, options?: WriteOptions, fn?: () => void)

Source from the content-addressed store, hash-verified

788 * @return {Socket} for chaining.
789 */
790 public send(msg: RawData, options?: WriteOptions, fn?: () => void) {
791 this._sendPacket("message", msg, options, fn);
792 return this;
793 }
794
795 /**
796 * Sends a packet.

Callers 15

flushMethod · 0.45
onTransportOpenMethod · 0.45
doWriteMethod · 0.45
_createMethod · 0.45
doWriteMethod · 0.45
socket.jsFile · 0.45
node.jsFile · 0.45
connection.jsFile · 0.45
webtransport.mjsFile · 0.45
binary-fallback.jsFile · 0.45
transport.jsFile · 0.45
ws.jsFile · 0.45

Calls 1

_sendPacketMethod · 0.95

Tested by

no test coverage detected