Skip to content

Join to or leave room by "external" process #645

@bokolob

Description

@bokolob

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions