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

feat: add server ping #120

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

feat: add server ping #120

wants to merge 2 commits into from

Conversation

achingbrain
Copy link
Collaborator

Adds an optional heartbeatMs key to the server config that will ping each connected client on that interval - if they have not responded with a pong since the last interval, the client will be disconnected as described at https://www.npmjs.com/package/ws#how-to-detect-and-close-broken-connections

Fixes #113

Adds an optional `heartbeatMs` key to the server config that will
ping each connected client on that interval - if they have not
responded with a pong since the last interval, the client will be
disconnected.

Fixes #113
@achingbrain achingbrain force-pushed the feat/add-server-ping branch from 138a3ee to 4aff597 Compare July 30, 2024 12:40
@achingbrain achingbrain mentioned this pull request Jul 31, 2024
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.

Ping/Pong Support
1 participant