Skip to content

Commit 9a4762f

Browse files
author
Lyndon
committed
dev: fix when manually connect and reconnect
1 parent c44d62b commit 9a4762f

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)