v0.2.0
Pre-release
Pre-release
StompClient reliability fixes
- Fixed an orphaned heartbeat task on every reconnect that follows a dropped or rejected connection - the previous connection's heartbeat task was never cancelled before starting a new one, only the token-expiry (msgCode 805) path did that.
- Fixed the same full traceback being re-logged on every retry of a persistently repeating STOMP ERROR frame, forever.
- Added
StompClient(on_error=...), invoked for any ERROR frame the cloud sends back other than a token-expiry, so a caller can react to a persistent error distinctly from an ordinary dropped connection.
Breaking: handler, on_auth_expired, and the new on_error are now keyword-only.
See the CHANGELOG for details. Root-caused from a real user report: bluetti-official/bluetti-home-assistant#145.