fix: debugging binary isn't very useful
This commit is contained in:
parent
da9ba63020
commit
c06907b318
|
@ -17,7 +17,7 @@ export default class Socket {
|
||||||
const [type, Packet] = Packets[i];
|
const [type, Packet] = Packets[i];
|
||||||
this.socket.on(Packet.id, (data, fn) => {
|
this.socket.on(Packet.id, (data, fn) => {
|
||||||
const packet = new Packet(Packet.decode(Buffer.from(data)));
|
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);
|
this.emit('packet', packet, fn);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user