diff --git a/index.js b/index.js index 07889cf..a15def8 100644 --- a/index.js +++ b/index.js @@ -147,8 +147,7 @@ aio.on('connection', function (socket) { record.on('connection', function(){ record.on('data', function(chunk) { // Only send real audio data - let arr = chunk.toJSON().data; - if (arr.length < 26456) { + if (chunk.length < 26456) { aio.sockets.to(id).emit('audio', chunk); } });