mirror of
https://github.com/tenrok/vue-native-websocket.git
synced 2026-06-07 08:12:26 +03:00
fixed minor bags
This commit is contained in:
@@ -36,7 +36,6 @@ export default {
|
||||
},
|
||||
beforeDestroy () {
|
||||
let sockets = this.$options['sockets']
|
||||
clearTimeout(observer.reconnectTimeoutId)
|
||||
|
||||
if (sockets) {
|
||||
Object.keys(sockets).forEach((key) => {
|
||||
|
||||
+2
-2
@@ -53,9 +53,9 @@ export default class {
|
||||
|
||||
if (this.store) { this.passToStore('SOCKET_' + eventType, event) }
|
||||
|
||||
if (this.reconnection && this.eventType === 'onopen') { this.reconnectionCount = 0 }
|
||||
if (this.reconnection && eventType === 'onopen') { this.reconnectionCount = 0 }
|
||||
|
||||
if (this.reconnection && eventType === 'onclose') { this.reconnect(event) }
|
||||
if (this.reconnection && eventType === 'onclose') { this.reconnect() }
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user