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

Method doWrite

packages/engine.io/lib/transports/polling.ts:231–236  ·  view source on GitHub ↗
(data: string)

Source from the content-addressed store, hash-verified

229 }
230
231 const doWrite = (data: string) => {
232 const compress = packets.some((packet) => {
233 return packet.options && packet.options.compress;
234 });
235 this.write(data, { compress });
236 };
237
238 if (this.protocol === 3) {
239 (this.parser as typeof parser_v3).encodePayload(

Callers 2

writeMethod · 0.95
server.jsFile · 0.45

Calls 5

writeMethod · 0.95
compressMethod · 0.95
callbackFunction · 0.50
writeHeadMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected