From 03b4f7c71be6706f788afc655436f358780ca254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Mon, 8 Feb 2021 19:31:15 +0100 Subject: [PATCH] disconnect websocket on system disconnect event. --- src/component/main.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/component/main.vue b/src/component/main.vue index 2b0e36f5..4a2cbff0 100644 --- a/src/component/main.vue +++ b/src/component/main.vue @@ -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', () => {