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

Method write

packages/engine.io/lib/transports/polling.ts:256–262  ·  view source on GitHub ↗

* Writes data as response to poll request. * * @param {String} data * @param {Object} options * @private

(data, options)

Source from the content-addressed store, hash-verified

254 * @private
255 */
256 private write(data, options) {
257 debug('writing "%s"', data);
258 this.doWrite(data, options, () => {
259 this.req.cleanup();
260 this.emit("drain");
261 });
262 }
263
264 /**
265 * Performs the write.

Callers 2

doWriteMethod · 0.95
sendMethod · 0.45

Calls 4

doWriteMethod · 0.95
debugFunction · 0.85
emitMethod · 0.65
cleanupMethod · 0.45

Tested by

no test coverage detected