ably-labs / ably-chat-kotlin

Ably Chat SDK for Android
Apache License 2.0
1 stars 1 forks source link

Consider using internal event bus for messages subscription implementation #18

Open ttypic opened 1 month ago

ttypic commented 1 month ago

Currently, all message subscription listeners are independent and have their own backing pub/sub channel subscription. As a result, we parse and construct the chat message from the raw pub/sub channel message multiple times. To avoid this, we can use an internal event bus with a single subscription that sends events to all chat message listeners.

┆Issue is synchronized with this Jira Task by Unito