disconnect websocket on system disconnect event.

This commit is contained in:
Miroslav Šedivý 2021-02-08 19:31:15 +01:00
parent 1ab1953dea
commit 03b4f7c71b

View File

@ -343,6 +343,9 @@
case 'signal/candidate':
this.webrtc.setCandidate(payload)
break
case 'system/disconnect':
this.websocket.disconnect(new Error('disconnected by server'))
break
}
})
this.websocket.on('connecting', () => {