This repository was archived by the owner on Oct 2, 2020. It is now read-only.
This repository was archived by the owner on Oct 2, 2020. It is now read-only.
How to set option before connect but not in Vue.use ? #15
Open
Description
Look like #7
But we need set option before connect but not in Vue.use
main.js
Vue.use(VueWebsocket, null, { autoConnect: false });
App.vue
created() {
// Like this? get the bar before connect
this.$socket.option = {
query: 'foo='+bar,
'transports': ['websocket'],
}
this.$socket.open();
}
Thanks
Metadata
Metadata
Assignees
Labels
No labels