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:
@@ -35,6 +35,7 @@ export default {
|
||||
},
|
||||
beforeDestroy () {
|
||||
let sockets = this.$options['sockets']
|
||||
clearTimeout(observer.reconnectTimeoutId)
|
||||
|
||||
if (sockets) {
|
||||
Object.keys(sockets).forEach((key) => {
|
||||
|
||||
Reference in New Issue
Block a user