Skip to content

feature request: Subscribe to channel to get notified of new messages #9

@kokokenada

Description

@kokokenada

I have a special channel for system messages to the user and want to get notified of new messages.

It was simple to get working using the javascript API (https://docs.quickblox.com/docs/js-chat-messaging#subscribe-message-events)

However, the javascript SDK does not support more than one listener for new messages and using the same QB instances broke the main chat application.

I could create a new instance of QB, but I think some things still reference window.QB and it would be unnecessarily complex to maintain two instances. It looks like RemoteDataSource.ts handles multiple subscriptions and could be used to subscribe to a specific channel which is my use case. Adding a listener and publishing useDialogsViewModel might be a good option as it has other handy methods

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions