Skip to content

Improve ping/pong and offline state

Choose a tag to compare

@juano2310 juano2310 released this 10 Nov 18:14
· 23 commits to main since this release

馃幆 Major Features Added

  1. Broker-Initiated Auto-Ping System
  • Broker now actively monitors client health by periodic pinging
  • Configurable ping interval (default: 5 seconds)
  • Configurable missed ping threshold (default: 2)
  • Automatic client disconnect on timeout
  • Separate runtime ping state (not stored in flash)
  1. Client Pong Callback
  • Clients can register onPong() callback to log broker response
  • Automatic response to broker pings