log when websocket disconnected
This commit is contained in:
parent
0a4b71b321
commit
3d0f3fcf74
|
@ -98,7 +98,7 @@ export default class AudioManager{
|
|||
|
||||
let buf16 = this.f32toi16(buf32);
|
||||
|
||||
if( this.ws )
|
||||
if( this.ws && this.ws.readyState === 1 )
|
||||
console.log(`send buffer[${buf16.length}]`);
|
||||
else
|
||||
console.log(`websocket not connected`);
|
||||
|
|
Loading…
Reference in New Issue