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

Method write

packages/engine.io/lib/transports-uws/polling.ts:294–300  ·  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

292 * @private
293 */
294 write(data, options) {
295 debug('writing "%s"', data);
296 this.doWrite(data, options, () => {
297 this.req.cleanup();
298 this.emit("drain");
299 });
300 }
301
302 /**
303 * Performs the write.

Callers 1

doWriteMethod · 0.95

Calls 4

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

Tested by

no test coverage detected