diff --git a/listen.js b/listen.js index 72123c4..7ea5c90 100644 --- a/listen.js +++ b/listen.js @@ -15,7 +15,7 @@ socket.on('message', function (message, rinfo) { console.log('Received %d bytes from %s:%d\n', message.length, rinfo.address, rinfo.port); //console.log(msg.toString('utf8')); - +buf.forEach parseInt(byte.toString('hex'), 16).toString(2); console.log(message.toString('hex')); var packets;