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 option to measure client latency #823

Open
wants to merge 6 commits into
base: v0.5
Choose a base branch
from
Open

Conversation

nineff
Copy link
Contributor

@nineff nineff commented Aug 1, 2020

This (very crude) initial implementation adds the method enableLatencyMeasuring() to the WsServer class.
It is similar to the enableKeepAlive() method and will also keep the connections alive by pining the clients repeatedly.
But it also keeps track of the ping times and can therefore provide a latency value (in milliseconds) for each connection.
The latency can be read like any other connection property.

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.

None yet

1 participant