Fixed real time messaging bugs

- Fixed incorrect mapping of real time messages.
- Join and leave hub events were incorrectly subscribed.