Skip to content

One CID can't subscribe two Topic #40

@JsForLife

Description

@JsForLife

I want to use one CID to subscribe two Topic, but if i use your SDK, i have to create two subscriber to do this.
const consumer1 = new Consumer(CUSTOMER_ID, TOPIC1, TAGS, ACCESS_KEY, SECRET_KEY, OPTIONS);
const consumer2 = new Consumer(CUSTOMER_ID, TOPIC2, TAGS, ACCESS_KEY, SECRET_KEY, OPTIONS);
And it is strange that just first consumer work, second consumer offline.

I hope use your SDK can support that:
const consumer = new Consumer(CUSTOMER_ID, ACCESS_KEY, SECRET_KEY, OPTIONS);
consumer.subscribe(TOPIC, TAG, async msg => { // do something });

Waiting for your help ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions