We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ea1a54 commit 94c131eCopy full SHA for 94c131e
src/Main.js
@@ -13,11 +13,8 @@ export default {
13
}
14
15
if (opts.connectManually) {
16
- Vue.prototype.$connect = (connectionAlternative) => {
17
- if (connectionAlternative) {
18
- connection = connectionAlternative
19
- }
20
- observer = new Observer(connection, opts)
+ Vue.prototype.$connect = (connectionUrl = connection, connectionOpts = opts) => {
+ observer = new Observer(connectionUrl, connectionOpts)
21
Vue.prototype.$socket = observer.WebSocket
22
23
0 commit comments