magrain commented on issue #133: URL: https://github.com/apache/pulsar-client-node/issues/133#issuecomment-733515219
Let me confirm the point of issue: 1. You want to avoid using * receive with timeout * error message based exception handling 2. You hope * "async" receive * event-driven codes like consumer.on('data', ... Is my understanding right? If so, it looks that your understanding and codes are right. Unfortunately, pulsar-client-node doesn't support event-based pattern you mentioned and we don't have any plans for now... (If you have any idea, discussion/contribution is welcome) ---------------------------------------------------------------- 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