Open IngvarListard opened 5 years ago
Have you tried connecting withthis._vm.$connect('ws://localhost:8000/ws/notifications/room1/')
? 😄
Having the same issue
Essentially want to make sure that i can create separate endpoints therefore wanting to connect manually and set the end points
@Amaurgit this yields a type error
Using Vue.prototype.$connect()
works
@fredrikasberg
Having the same issue. How to connect manually from a component? Using "this.$connect()" throws an error that it's not defined. Even "Vue.prototype.connect()" throws the same error.
Cannot read property '$connect' of undefined
I'm using Nuxt and manual socket connection management seems not working to me. Methods
.$connect
and.$disconnect
just doesn't appear in the context.To reproduce I've installed the plugin like documentation of nuxt and vue-native-websocket says:
Am I doing something wrong?