I have two flask_socketio apps running which use message_queue="redis://localhost:6379/2" and message_queue="redis://localhost:6379/1" respectively.
But it looks like I'm doing it wrong or it is not honouring the database numbers 2 and 1 but may be using 0 as default because when I broadcast some message from an external process, it gets broadcast from both the apps!
In the external processes I initialise the app like this:
socketio = SocketIO()
socketio.init_app(None, message_queue=f"redis://localhost:6379/{db_number}")
Can you please help?
I have two flask_socketio apps running which use
message_queue="redis://localhost:6379/2"andmessage_queue="redis://localhost:6379/1"respectively.But it looks like I'm doing it wrong or it is not honouring the database numbers
2and1but may be using0as default because when Ibroadcastsome message from an external process, it gets broadcast from both the apps!In the external processes I initialise the app like this:
Can you please help?