mirror of
https://github.com/linuxserver/kclient.git
synced 2026-02-19 16:56:06 +08:00
stop converting buffer to array server side
This commit is contained in:
parent
f050312d7a
commit
0147d77802
3
index.js
3
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);
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user