Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report WebSocket failures to OnConnectionUpdated handler #51

Merged

Conversation

FineTralfazz
Copy link
Contributor

@FineTralfazz FineTralfazz commented Jun 1, 2024

In the existing code, WebSocket connection interruptions are silent. The OnConnectionUpdated event handler is never called, it just stops working. Ideally we would handle this internally (as suggested by #5), but this at least lets the caller address the issue.

@drasticactions
Copy link
Owner

LGTM, makes sense. I think ClientWebSocket has events for its state that might be useful here but this is a good starting point and I can see how it can at least help out right now. Thanks!

@drasticactions drasticactions merged commit edcf2a5 into drasticactions:main Jun 2, 2024
1 check passed
@FineTralfazz FineTralfazz deleted the report_websocket_failures branch July 3, 2024 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants