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: implement ping pong communication to keep socket alive #21

Merged
merged 4 commits into from
Oct 5, 2022

Conversation

Oliver-Zimmerman
Copy link
Contributor

This PR introduces the pong reply to received ping messages in order to keep the websocket alive on the client side.

This resolves the user issue described here:
#20 (comment)

👴 👶 Behaviors

Before changes

Not responding to ping messages. I'm not sure what has changed recently but before this wasn't required to keep the socket open. Recently though, the socket is closing when inactive for a certain amount of time.

After changes

Reply to each ping message with a pong message, modelled after the JS SDK

✋ Manual testing

  1. Log into the application
  2. Monitor logs and see the ping pong exchange

@Oliver-Zimmerman Oliver-Zimmerman merged commit a92b7c5 into main Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants