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

Allow JSONClient reconfiguration when connected #220

Merged
merged 1 commit into from
Oct 23, 2022

Conversation

robert-s-ubi
Copy link
Contributor

The WebSocket library allows changing the ping interval immediately during an ongoing connection. Expose this capability by adding a new reconfigure() method to the JSONClient class.

To make use of this, set the updated PING_INTERVAL_PARAMETER on the JSONConfiguration object passed to the JSONClient constructor, then invoke JSONClient#reconfigure().

This has been successfully verified to work.

The WebSocket library allows changing the ping interval immediately
during an ongoing connection. Expose this capability by adding a new
reconfigure() method to the JSONClient class.

To make use of this, set the updated PING_INTERVAL_PARAMETER on the
JSONConfiguration object passed to the JSONClient constructor, then
invoke JSONClient#reconfigure().
Copy link
Contributor

@jmluy jmluy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TVolden TVolden merged commit 1c53b53 into ChargeTimeEU:master Oct 23, 2022
@TVolden
Copy link
Member

TVolden commented Oct 23, 2022

Thanks for the contribution @robert-s-ubi. It's been merged.

@jmluy thanks for code reviewing it.

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.

3 participants