Hi!
I have an endpoint that receive webhook event from a third party service I use. When I receive a request from that third party, I’d like to notify all the users connected to the same account (via Room I suppose) about that new incoming data.
The issue is that I don’t have access to all the websockets connections from my /webhook handler.
I could create a class that stores all the websockets connections, per room, and list all the websockets connections on a specific room, and send the event one by one from there, but this won’t work well if I have more than one worker, and I’m pretty sure it’s not very efficient in term of error handling (what if the server goes down? is restarted? etc).
So here I am, hoping that I’m not the first and a pretty well working solution is available at my fingertips
Thank you for your help and enjoy your weekend!