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

Method callback

packages/engine.io/lib/transports-uws/polling.ts:223–231  ·  view source on GitHub ↗
(packet)

Source from the content-addressed store, hash-verified

221 onData(data) {
222 debug('received "%s"', data);
223 const callback = (packet) => {
224 if ("close" === packet.type) {
225 debug("got xhr close packet");
226 this.onClose();
227 return false;
228 }
229
230 this.onPacket(packet);
231 };
232
233 if (this.protocol === 3) {
234 (this.parser as typeof parser_v3).decodePayload(data, callback);

Callers

nothing calls this directly

Calls 3

onCloseMethod · 0.95
debugFunction · 0.85
onPacketMethod · 0.45

Tested by

no test coverage detected