Repository navigation
v0.0.17
What's Changed
- Fixed Issue-1703
- Introduced a new helper method
shouldRecreateReceiverthat inspects errors (e.g.,GeneralError,ServiceCommunicationError, errors containing "Unknown error occurred", or whenretryableis true) to determine if the receiver should be reinitialized. This change ensures that transient or fatal connection errors do not break the polling loop. - Instead of rejecting the promise on errors (which would break the subscription), the updated logic:
- Logs the error.
- Checks if the error related to connection then receiver re-creation via
shouldRecreateReceiver. - Closes the existing receiver if needed and then reinitializes it.
- Continues polling after a short delay (1 second) to maintain uninterrupted message processing.
- Changed the lock renewal interval from 30 seconds to 25 seconds. This provides a safer margin to renew locks before they expire.
- The calling of
subscribeandpublishmethods remain unchanged. - Updated CHANGELOG.md
Full Changelog: v0.0.16...v0.0.17