fix: debugging binary isn't very useful

This commit is contained in:
cha0s 2022-03-14 15:08:48 -05:00
parent da9ba63020
commit c06907b318

View File

@ -17,7 +17,7 @@ export default class Socket {
const [type, Packet] = Packets[i];
this.socket.on(Packet.id, (data, fn) => {
const packet = new Packet(Packet.decode(Buffer.from(data)));
debug('received packet %s(%j)', type, data);
debug('received packet %s(%j)', type, packet.data);
this.emit('packet', packet, fn);
});
}