Skip to content

Conversation

@Yuval-Roth
Copy link
Contributor

Description

Added an overload to reconnectBlocking method in WebSocketClient class to allow blocking reconnect with timeout.

Related Issue

#1464

Motivation and Context

I need to perform a blocking reconnect with a timeout. There is currently no way to do this without reflection

How Has This Been Tested?

The two commands in the new method were called from outside the class in my use case and it works, there is not much to test here.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

* @param timeout The connect timeout
* @param timeUnit The timeout time unit
* @return Returns whether it succeeded or not.
* @throws InterruptedException Thrown when the threads get interrupted
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add

   * @since 1.6.1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@PhilipRoman PhilipRoman added this to the Release 1.6.1 milestone Apr 19, 2025
@PhilipRoman PhilipRoman merged commit 8c5766a into TooTallNate:master Apr 19, 2025
@PhilipRoman
Copy link
Collaborator

Thanks for your contribution!

@Sn0w3y
Copy link

Sn0w3y commented Jun 17, 2025

Does this fix our Issue?

OpenEMS/openems#2462 (comment)

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