2
0
mirror of https://github.com/tenrok/vue-native-websocket.git synced 2026-06-12 09:32:28 +03:00

Add reconnect (#25)

* add ws reconnect

* added in readme text about reconnect
This commit is contained in:
Viktor
2017-11-13 19:52:29 +03:00
committed by Nathan
parent 782d400953
commit 07328e1548
5 changed files with 57 additions and 3 deletions
+1
View File
@@ -35,6 +35,7 @@ export default {
},
beforeDestroy () {
let sockets = this.$options['sockets']
clearTimeout(observer.reconnectTimeoutId)
if (sockets) {
Object.keys(sockets).forEach((key) => {