Cannot connect multiple socket
See original GitHub issueThe old method is not working anymore https://github.com/MetinSeylan/Vue-Socket.io/pull/98
Is there any update for multiple connections?
My code:
const VueSocketIO = require('vue-socket.io')
const connectObj = {
notification: process.env.VUE_APP_NOTIFICATION_SOCKET_SERVER_ENDPOINT,
backend: process.env.VUE_APP_SOCKET_SERVER_ENDPOINT
}
Vue.use(
new VueSocketIO({
debug: true,
connection: connectObj,
vuex: {
store,
actionPrefix: 'SOCKET_',
mutationPrefix: 'SOCKET_'
}
})
)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:9
Top Results From Across the Web
Unable to connect with multiple client with my socket server ...
My socket server program is mentioned below. It works fine with the single client but when I try to connect it with another...
Read more >Troubleshooting connection issues | Socket.IO
the socket is not able to connect; the socket gets disconnected; the socket is stuck in HTTP long-polling; other common gotchas. Problem: the ......
Read more >Socket allocation problems cause operations to fail with error ...
After a socket is closed, the socket connection stays in a TIME_WAIT state for approximately two minutes more (the amount of time depends...
Read more >Socket.Connect Method (System.Net.Sockets) | Microsoft Learn
This method is typically used immediately after a call to GetHostAddresses, which can return multiple IP addresses for a single host. If you...
Read more >Socket Programming HOWTO — Python 3.11.1 documentation
Finally, the argument to listen tells the socket library that we want it to queue up as many as 5 connect requests (the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@stevetsim Just as below. It works for me.
Then, in single component which using
ns1
(ns2
is the same asns1
):Open and keep the connection only if you need it. Just don’t forget to set the socket path before the connection opening every time.
i have the same problem