I have a multiple-room chat application. How can users get notified on new messages posted to chat rooms that they are subscribed to?

  1. Global notification channel: this channel receives notification of change events such as when a new message has been posted in room ABC. This channel is an always-on global channel to which all users are connected.
  2. Chat room channel: this channel broadcasts the chat message text. The user subscribes to this channel when joining a chat room and unsubscribes when leaving the chat room.