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

Function onData

packages/engine.io-client/lib/transport.ts:140–143  ·  view source on GitHub ↗

* Called with data. * * @param {String} data * @protected

(data: RawData)

Source from the content-addressed store, hash-verified

138 * @protected
139 */
140 protected onData(data: RawData) {
141 const packet = decodePacket(data, this.socket.binaryType);
142 this.onPacket(packet);
143 }
144
145 /**
146 * Called with a decoded packet.

Callers

nothing calls this directly

Calls 2

decodePacketFunction · 0.90
onPacketMethod · 0.45

Tested by

no test coverage detected