vue-socket.io-extended
vue-socket.io-extended copied to clipboard
How to create two or more connection?
As the title, I went through the documentation and source code and found no way
I can use Socket.io-client directly, but I don’t want to give up using this excellent plugin
Does anyone have any suggestions 🙏
Hi @lllllxt Why do you need two connections to the server?
The project I have is to cooperate with other companies, and I must connect their services and our own services at the same time. @probil
+1
We have multiple end servers that need connecting to and it seems that only one can be setup at once for use with vuex. I have tried calling
Vue.use(VueSocketIOExt, socketInstance, opts);
Vue.use(VueSocketIOExt, socketInstance2, opts);
for each different socket connection but it seems this also doesn't work.