Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create two or more connection? #465

Open
lllllxt opened this issue Jun 5, 2020 · 3 comments
Open

How to create two or more connection? #465

lllllxt opened this issue Jun 5, 2020 · 3 comments

Comments

@lllllxt
Copy link

lllllxt commented Jun 5, 2020

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 🙏

@probil
Copy link
Owner

probil commented Jun 6, 2020

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

@lllllxt
Copy link
Author

lllllxt commented Jun 6, 2020

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

@Jake13f
Copy link

Jake13f commented Dec 21, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants