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 HCWebSocketSetPingInterval #867

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

dawesten-msft
Copy link
Collaborator

Not all platforms behave similarly or have similar capabilities but this is a best effort to at least expose some control over the ping behavior by adding HCWebSocketSetPingInterval and HCWebSocketGetPingInterval. If the client did not specify a ping interval the library behaves as before to avoid unexpected changes.

If the client does, Android and websocketpp now have a pong-timeout to help detect broken connections. Unfortunately, WinRT does not have any options for ping/pong frames and WinHttp can (as far as I could tell) only send unsolicited pongs.

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.

1 participant