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

Add an option of automatic pings and pongs to web sockets in HtttpClient backends #2005

Closed
adamw opened this issue Nov 21, 2023 · 1 comment
Labels

Comments

@adamw
Copy link
Member

adamw commented Nov 21, 2023

Consider the same in other backends, as well

Source: https://softwaremill.community/t/websocket-state-monitoring/308

@adamw adamw added the v4 label Jan 14, 2025
@adamw
Copy link
Member Author

adamw commented Jan 14, 2025

The sttp.ws.WebSocket already sends Pong frames when a Ping is received, when using e.g. the receiveDataFrame method.

Typically it's the servers that send Pings, not clients, and we don't have a way of scheduling these sends as this would require starting a background thread/fiber - which is not something we can always do.

So in typical scenarios things should work as expected; non-typical scenarios will require Pings to be sent manually.

@adamw adamw closed this as completed Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant