2
0
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:
Viktor Shcheglov
2018-01-08 20:17:34 +03:00
parent 3551355f2b
commit a3b33dd5f3
5 changed files with 53 additions and 6 deletions
-1
View File
@@ -36,7 +36,6 @@ export default {
},
beforeDestroy () {
let sockets = this.$options['sockets']
clearTimeout(observer.reconnectTimeoutId)
if (sockets) {
Object.keys(sockets).forEach((key) => {
+2 -2
View File
@@ -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() }
}
})
}