fastapi-socketio icon indicating copy to clipboard operation
fastapi-socketio copied to clipboard

feature request : allow to provide a client_manager

Open thomasleveil opened this issue 3 years ago • 5 comments

So that we can use Redis or RabbitMQ to make socket.io work in a multi process context.

See https://python-socketio.readthedocs.io/en/latest/server.html?highlight=redis#using-a-message-queue

thomasleveil avatar Nov 30 '20 14:11 thomasleveil

Hey @thomasleveil 👋

Thank you for the feature request 🙏

I have seen previously that there is possibility of using Redis, RabbitMQ and other services with SocketIO but haven't dig any deeper into the use-cases and implementation.

I will read some docs and take a look on how could we implement this 🚀

pyropy avatar Nov 30 '20 16:11 pyropy

Also interested in this. I'm not sure how it can be tied to app, since using a Manager replaces that argument socketio.AsyncServer(client_manager=socketio.AsyncRedisManager('redis://')) - so it seems mutually exclusive? But yeah, this feature would be a boon for scaling apps (multiple servers), as well as some features which appear only available on the JQ Managers, like sio.get_participants() to see a list of users in the room.

lefnire avatar Feb 19 '21 23:02 lefnire

Hello. Any progress ?

y-mironov avatar Jul 18 '21 15:07 y-mironov

Any Ideas @pyropy ??

kalmastenitin avatar Jan 25 '22 11:01 kalmastenitin

Hey sorry folks, I really have a lot of going on my plate so I don't really have time to get feature requests going. I would appreciate any contributions from your side as that would help me greatly in maintaining this library.

pyropy avatar Jan 26 '22 09:01 pyropy