hrsakai commented on issue #32: Dependencies + subscription modes 
URL: 
https://github.com/apache/pulsar-client-node/issues/32#issuecomment-501496684
 
 
   @1N50MN14 
   
   >  keep the client lightweight?
   
   I see. We will check and fix it.
   
   > Is it possible to specify subscription node?
   
   Yes, you can specify subscription node as following:
   ```
     const consumer = await client.subscribe({
       topic: 'persistent://public/default/my-topic',
       subscription: 'sub1',
       subscriptionType: 'Shared',
    //   subscriptionType: 'Failover',
   //    subscriptionType: 'Exclusive',
       ackTimeoutMs: 10000,
     });
   ```
   
   Thanks.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to