mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 22:23:21 -04:00
Client also emits 'packet' events for every packet
This commit is contained in:
parent
68b29db639
commit
5e0ae2713a
@ -34,6 +34,7 @@ Client.prototype.setSocket = function(socket) {
|
|||||||
packet = parsed.results;
|
packet = parsed.results;
|
||||||
incomingBuffer = incomingBuffer.slice(parsed.size);
|
incomingBuffer = incomingBuffer.slice(parsed.size);
|
||||||
self.emit(packet.id, packet);
|
self.emit(packet.id, packet);
|
||||||
|
self.emit('packet', packet);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user