ondecoded method
void
ondecoded(
- dynamic packet
Called when parser fully decodes a packet.
Implementation
void ondecoded(packet) {
if (connect == packet['type']) {
final nsp = packet['nsp'];
final uri = Uri.parse(nsp);
connect(uri.path, uri.queryParameters);
} else {
var socket = nsps[packet['nsp']];
if (socket != null) {
socket.onPacket(packet);
} else {}
}
}