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

Method send

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

* Sends a message packet. * * @param {Object} data * @param {Object} options * @param {Function} callback * @return {Socket} for chaining

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

Source from the content-addressed store, hash-verified

439 * @return {Socket} for chaining
440 */
441 public send(data: RawData, options?: SendOptions, callback?: SendCallback) {
442 this.sendPacket("message", data, options, callback);
443 return this;
444 }
445
446 /**
447 * Alias of {@link send}.

Callers 12

onPacketMethod · 0.45
checkMethod · 0.45
flushMethod · 0.45
webtransport.mjsFile · 0.45
middlewares.jsFile · 0.45
server.jsFile · 0.45
sendFnFunction · 0.45
testForHeadersFunction · 0.45
server.jsFile · 0.45
index.jsFile · 0.45
sendFunction · 0.45
server.jsFile · 0.45

Calls 1

sendPacketMethod · 0.95

Tested by

no test coverage detected