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

Adds signal socket noop keepalive #41

Merged
merged 1 commit into from Nov 28, 2023
Merged

Conversation

geirbakke
Copy link
Contributor

@geirbakke geirbakke commented Nov 28, 2023

This moves/commits the brokenSignalDetectorOn experiment previously running in PWA to jslib-media. It has been rolled out 100% for 1.5 months on PWA. It is used for faster client side disconnect detection, with a nice side effect of preventing most of the 5m periodic disconnects

A small change here is to turn on/off the noop keepalive loop when disconnected. And only apply it when using websockets (which we always do, but in case that changes...)

See also:
https://github.com/whereby/pwa/pull/3860
https://linear.app/whereby/issue/COB-187/decide-how-to-move-brokensignaldetectoron-from-experiment-to-feature
socketio/socket.io#4868

📦 Published PR as canary version: 1.5.3--canary.41.7017285072.0

✨ Test out this PR locally via:

npm install @whereby/jslib-media@1.5.3--canary.41.7017285072.0
# or 
yarn add @whereby/jslib-media@1.5.3--canary.41.7017285072.0

@geirbakke geirbakke merged commit 429067d into main Nov 28, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants