Repository navigation
When the bridge drops the connection, this release reconnects within milliseconds. Before, the library waited for its next ping check, 10 to 20 s later, and light commands sent in that window were lost without an error. A Deako bridge resets its connections once a day, so this happened daily. The library is called the same way as in 0.7.1.
Changes
- The ping worker reconnects as soon as the connection closes, from either side. A missing pong still triggers a reconnect as before. A bridge that closes every connection right after accepting it is still retried at most once every 10 s (#15).
- The README shows CI, PyPI and coverage badges (#14).
For contributors
Two new tests run against the fake bridge: one checks that a dropped connection is replaced without waiting for a ping, the other that a bridge closing every connection isn't retried in a tight loop. The fake bridge can now close each connection as soon as it accepts it.
Known issues
The two bugs from 0.7.0 are still open: calling connect() twice leaves the first connection open, and calling disconnect() while connect() is still looking for a bridge doesn't stop the retries.
Full changelog: 0.7.1...0.7.2