mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-13 08:12:57 +02:00
remove connecting event.
This commit is contained in:
parent
97a213c9b3
commit
b9b311c6de
3 changed files with 1 additions and 16 deletions
|
@ -33,11 +33,6 @@ export class NekoConnection extends EventEmitter<NekoConnectionEvents> {
|
|||
Vue.set(this._state, 'type', 'webrtc')
|
||||
|
||||
// websocket
|
||||
this.websocket.on('connecting', () => {
|
||||
if (this._state.status !== 'connecting') {
|
||||
Vue.set(this._state, 'status', 'connecting')
|
||||
}
|
||||
})
|
||||
this.websocket.on('connected', () => {
|
||||
if (this.websocket.connected && this.webrtc.connected) {
|
||||
Vue.set(this._state, 'status', 'connected')
|
||||
|
@ -52,11 +47,6 @@ export class NekoConnection extends EventEmitter<NekoConnectionEvents> {
|
|||
})
|
||||
|
||||
// webrtc
|
||||
this.webrtc.on('connecting', () => {
|
||||
if (this._state.status !== 'connecting') {
|
||||
Vue.set(this._state, 'status', 'connecting')
|
||||
}
|
||||
})
|
||||
this.webrtc.on('connected', () => {
|
||||
if (this.websocket.connected && this.webrtc.connected) {
|
||||
Vue.set(this._state, 'status', 'connected')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue