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

0.2.3-0.0.1 - Enhancement: Add Ping Send #39

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

lnbc1QWFyb24
Copy link
Owner

@lnbc1QWFyb24 lnbc1QWFyb24 commented Aug 10, 2023

This PR adds a timeout that will send a Ping message 45 seconds from the last message received. Previously we only handled sending a Pong message response when the connected node sent a ping. By actively sending a Ping message we solve the issue of the browser closing the WebSocket in the background without us knowing that it is closed until we send a message. This ensures a more stable connection since we can auto-reconnect once we detect it has been closed.

Also included in this PR are updates to the dependencies used in crypto.ts.

@socket-security
Copy link

Updated dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
typescript 4.8.3...5.1.6 None +0/-0 40.1 MB typescript-bot
ws 8.12.1...8.13.0 None +0/-0 137 kB lpinca
@noble/secp256k1 1.7.1...2.0.0 None +0/-0 73.1 kB paulmillr
@noble/hashes 1.2.0...1.3.1 None +0/-0 743 kB paulmillr

@lnbc1QWFyb24 lnbc1QWFyb24 merged commit 671283f into develop Aug 10, 2023
@lnbc1QWFyb24 lnbc1QWFyb24 deleted the enhancement/ping-send branch August 10, 2023 22:11
@lnbc1QWFyb24 lnbc1QWFyb24 mentioned this pull request Aug 10, 2023
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