Skip to content

Commit 4cba717

Browse files
authored
Merge pull request nathantsoi#84 from kawais/master
dev: fix when manually connect and reconnect
2 parents c44d62b + 9a4762f commit 4cba717

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default {
1414

1515
if (opts.connectManually) {
1616
Vue.prototype.$connect = (connectionUrl = connection, connectionOpts = opts) => {
17+
connectionOpts.$setInstance = opts.$setInstance
1718
observer = new Observer(connectionUrl, connectionOpts)
1819
Vue.prototype.$socket = observer.WebSocket
1920
}

0 commit comments

Comments
 (0)