You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(websocket): expose heartbeat events with improved implementation
Exposes WebSocket heartbeat events to allow users to monitor connection health
for both public and authenticated channels.
Changes:
- Add 'heartbeat' event to BfxEventEmitter as a valid event type
- Emit heartbeat events in WebSocket client and bucket instead of silently discarding
- Consistent handler signature: receives Optional[Subscription] parameter
- Public channels: subscription details
- Authenticated (channel 0): None
- Add comprehensive example with proper type hints and error handling
- Update README with clear documentation and usage examples
The handler signature is consistent across all subscription-based events,
always passing the subscription as first parameter (None for authenticated).
Lines of code: +101 insertions, -4 deletions (+97 net)
0 commit comments