When we run multiple socket processes how to disconnect a user #1228
-
When we run multiple socket processes if a user enters a room with 1st process and the same user tries to open a new connection in a new tab with the new process I need to disconnect the 1st process connection. If 1st process enters a room, 2nd process while disconnecting the 1st process can't leave a room as he doesn't know the sid details. How can we achieve him to leave a room from second process. As we are storing sid data across every process separately. Is there a way to disconnect during multiple process running. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Are you using a message queue? This is required when running multiple processes. With a correctly set up cluster, you can call |
Beta Was this translation helpful? Give feedback.
Unfortunately the user sessions are not currently available across processes, but a disconnection request should work just fine regardless of the process it is issued from. You may need to implement a different storage for your user session data if you need to access it from other processes.