mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
disconnect websocket on system disconnect event.
This commit is contained in:
parent
1ab1953dea
commit
03b4f7c71b
@ -343,6 +343,9 @@
|
|||||||
case 'signal/candidate':
|
case 'signal/candidate':
|
||||||
this.webrtc.setCandidate(payload)
|
this.webrtc.setCandidate(payload)
|
||||||
break
|
break
|
||||||
|
case 'system/disconnect':
|
||||||
|
this.websocket.disconnect(new Error('disconnected by server'))
|
||||||
|
break
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.websocket.on('connecting', () => {
|
this.websocket.on('connecting', () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user