hrsakai commented on issue #56: Add listener support for consumer
URL: https://github.com/apache/pulsar-client-node/pull/56#issuecomment-552786514
 
 
   Please tell me, why do you not pass consumer to listener like other 
languages?
   
   example:
   ```
     const consumer = await client.subscribe({
       topic: 'persistent://public/any/topic1',
       subscription: 'sub1',
       listener: (message, consumer) => {
         consumer.acknowledge(message)
       },
     });
   ```

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to