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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user