2
0
mirror of https://github.com/tenrok/vue-native-websocket.git synced 2026-05-17 04:59:37 +03:00

Merge pull request #84 from kawais/master

dev: fix when manually connect and reconnect
This commit is contained in:
Viktor
2019-04-05 13:48:29 +03:00
committed by GitHub
+1
View File
@@ -14,6 +14,7 @@ export default {
if (opts.connectManually) {
Vue.prototype.$connect = (connectionUrl = connection, connectionOpts = opts) => {
connectionOpts.$setInstance = opts.$setInstance
observer = new Observer(connectionUrl, connectionOpts)
Vue.prototype.$socket = observer.WebSocket
}