log when websocket disconnected

This commit is contained in:
xdrm-brackets 2018-04-06 01:52:26 +02:00
parent 0a4b71b321
commit 3d0f3fcf74
1 changed files with 1 additions and 1 deletions

View File

@ -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`);