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

Method doWrite

packages/engine.io/lib/transports-uws/polling.ts:269–274  ·  view source on GitHub ↗
(data: string)

Source from the content-addressed store, hash-verified

267 }
268
269 const doWrite = (data: string) => {
270 const compress = packets.some((packet) => {
271 return packet.options && packet.options.compress;
272 });
273 this.write(data, { compress });
274 };
275
276 if (this.protocol === 3) {
277 (this.parser as typeof parser_v3).encodePayload(

Callers 1

writeMethod · 0.95

Calls 5

writeMethod · 0.95
compressMethod · 0.95
writeStatusMethod · 0.80
callbackFunction · 0.50
endMethod · 0.45

Tested by

no test coverage detected