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

Function write

packages/engine.io-client/lib/transports/polling.ts:145–154  ·  view source on GitHub ↗

* Writes a packets payload. * * @param {Array} packets - data packets * @protected

(packets)

Source from the content-addressed store, hash-verified

143 * @protected
144 */
145 override write(packets) {
146 this.writable = false;
147
148 encodePayload(packets, (data) => {
149 this.doWrite(data, () => {
150 this.writable = true;
151 this.emitReserved("drain");
152 });
153 });
154 }
155
156 /**
157 * Generates uri for connection.

Callers

nothing calls this directly

Calls 2

encodePayloadFunction · 0.90
doWriteMethod · 0.45

Tested by

no test coverage detected