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

Function onPacket

packages/engine.io/lib/transport.ts:154–156  ·  view source on GitHub ↗

* Called with parsed out a packets from the data stream. * * @param {Object} packet * @protected

(packet: Packet)

Source from the content-addressed store, hash-verified

152 * @protected
153 */
154 protected onPacket(packet: Packet) {
155 this.emit("packet", packet);
156 }
157
158 /**
159 * Called with the encoded packet data.

Callers

nothing calls this directly

Calls 1

emitMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…