I don't know how exactly it should work, but I believe the server should have a database for room_subscribtions with:
room id
subscription id
some socket or IP to send messages to
When ever a message is created or updated in a room (or the room itself), everyone subscribed to the room should be updated with a message. The format of this message is to be decided.
I don't know how exactly it should work, but I believe the server should have a database for room_subscribtions with:
When ever a message is created or updated in a room (or the room itself), everyone subscribed to the room should be updated with a message. The format of this message is to be decided.