mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 22:23:21 -04:00
Emit a 'raw' event for all raw buffers (in addition to per-packet-type)
This commit is contained in:
parent
3e2f7032bb
commit
cda8847b44
@ -95,6 +95,7 @@ Client.prototype.setSocket = function(socket) {
|
||||
self.emit(packetName, packet);
|
||||
self.emit('packet', packet);
|
||||
self.emit('raw.' + packetName, parsed.buffer);
|
||||
self.emit('raw', parsed.buffer);
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user