Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
My server has not made friends with socket.io, but they say it is already a proven tool (Node.js is ideal). And I used the native and most common js waebsocket. When mounted() initialized $store.state.ws through actions in vuex(this.$store.dispatch('setWS', 'ws://blahblah/')) and then used the usual websocket getters. Through .send('') sent, and through .onmessage(data){} received data. I hung a watcher on getters and voila) Honestly, it's a hemorrhoid if used in large volumes, and if you need private solutions, then it's very ok)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question