-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Dynamic namespace connect sometime not triggers namespace scope with Socket io, Kubernetes #4015
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
Comments
I wanted to update from v2, but encountered the same issue. Until it's resolved, I'd suggest sticking to v2.3.0... |
Thank you for your suggestion. Unfortunately, v2 is far from my current version :( . Do you think the cause of this issue is socket.io core ? |
Didn't have much time, so we decided to leave it with v2 and move on to other projects. Last thing I remember was messing around with the dynamic namespaces unit tests |
Sorry for my English, We got the same problem, but we are not supposed to create dynamic workspace. You should have static name space with dynamic room. So we change dynamic workspace for room, and we fixed ours problem. Hope is good for you too. |
Unfortunately, as I said in #3960, we would need a way to reproduce the issue... |
Namespaces that match the regex of a parent namespace will now be added as a child of this namespace: ```js const parentNamespace = io.of(/^\/dynamic-\d+$/); const childNamespace = io.of("/dynamic-101"); ``` Related: - socketio#4615 - socketio#4164 - socketio#4015 - socketio#3960
Namespaces that match the regex of a parent namespace will now be added as a child of this namespace: ```js const parentNamespace = io.of(/^\/dynamic-\d+$/); const childNamespace = io.of("/dynamic-101"); ``` Related: - socketio#4615 - socketio#4164 - socketio#4015 - socketio#3960
I have faced a strange issue with Socket io dynamic namespace, Kubernetes. Client connected to socketio server but sometimes connection events never trigger the namespace instance.
I'm experiencing intermittent issue when using a regex expression for dynamic namespace.
But, In case:
=> it works normally !!!
The code is working fine most of the time. It only failed when the socket.io client failed to trigger the namespace connect event.
Note:
Package
Server code:
Client code
I spent almost two weeks to find the solution but still have no result.
Is there any solution for this issue ? My application has many namespaces so I needs using dynamic namespace instead of hard code.
The text was updated successfully, but these errors were encountered: