stomp-js / stompjs

Javascript and Typescript Stomp client for Web browsers and node.js apps
Apache License 2.0
738 stars 80 forks source link

Callback when a heartbeat has come or gone #621

Open StareStarrySky opened 6 months ago

StareStarrySky commented 6 months ago

The necessity of two new Properties named onHeartbeatIn and onHeartbeatOut likely add into the Client CLASS, when a heartbeat has come or gone?

I want to show a blinking light means heartbeat ping and pong, however there's no problem if don't have this function for me. Wait for other conditions if exist and necessary.