mirror of
https://github.com/tenrok/vue-native-websocket.git
synced 2026-06-07 23:22:26 +03:00
Merge pull request #74 from dengdan99/patch-1
when the false hasProxy, the sockets need addListener tnx @dengdan99
This commit is contained in:
@@ -56,6 +56,13 @@ export default {
|
||||
}
|
||||
} else {
|
||||
Object.seal(this.$options.sockets)
|
||||
|
||||
// if !hasProxy need addListener
|
||||
if (sockets) {
|
||||
Object.keys(sockets).forEach(key => {
|
||||
Emitter.addListener(key, sockets[key], vm)
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
beforeDestroy () {
|
||||
|
||||
Reference in New Issue
Block a user