Replies: 7 comments 1 reply
-
You are correct, joining and leaving rooms must be called on the server the target user is connected to. |
Beta Was this translation helpful? Give feedback.
-
What if I fix that? |
Beta Was this translation helpful? Give feedback.
-
Well, it is not really a bug. The most common case is that a client makes a request to join a room, so there is really no way this request can end up in the wrong server. The case that is not covered is a when an action performed by one client or by the server on its own requires some other client to be added to a room. Is that something that you need? |
Beta Was this translation helpful? Give feedback.
-
Yes. Not only added but removed too. |
Beta Was this translation helpful? Give feedback.
-
But, it seems to be essential, even in chat applications users can be kicked by moderators.. |
Beta Was this translation helpful? Give feedback.
-
Okay. If you want to give it a go I have no problem adding it. |
Beta Was this translation helpful? Give feedback.
-
Is there any workaround to join/leave room from external process ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I can't understand clearly if I can join some user to some room on the server that he isn't connected to. As I can get from code - it doesn't work because leave and join both work with local dicts, that are not shared between machines.
It seems that join and leave calls could work only when are called on the server (even different gunicorn process on the same server!) where client is connected. Moreover, user can stay joined some room on one server which he had left on another (not for a long time probably).
For example - I use socketio to push some messages to users, and If user is joined to some room means that he has rights to particular kind of messages. Now, administrator can subscribe this user to particular room, to give him some rights, but he is connected to different server.
I believe this calls should be processed in _thread as well as close_room is.
Beta Was this translation helpful? Give feedback.
All reactions