vue-socket.io-extended icon indicating copy to clipboard operation
vue-socket.io-extended copied to clipboard

How to create two or more connection?

Open lllllxt opened this issue 4 years ago • 3 comments

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 🙏

lllllxt avatar Jun 05 '20 17:06 lllllxt

Hi @lllllxt Why do you need two connections to the server?

probil avatar Jun 06 '20 09:06 probil

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

lllllxt avatar Jun 06 '20 09:06 lllllxt

+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.

Jake13f avatar Dec 21 '20 19:12 Jake13f