massakam edited a comment on issue #141: URL: https://github.com/apache/pulsar-client-node/issues/141#issuecomment-786417959
@iamrmin On the producer side, we should be able to notice that the connection has been lost because message sending times out (the duration can be changed with the `sendTimeoutMs` property) and an exception is thrown. On the consumer side, there is currently no way to notice that the connection has been lost except by looking at the error log. The Node.js client is a wrapper of Pulsar C++ client and the C++ client doesn't have such feature. So it is currently difficult to implement such a callback... ---------------------------------------------------------------- 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