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

Make isConnected() in WebSocketConnectionManager public #28785

Closed
wants to merge 1 commit into from

Conversation

npriebe
Copy link
Contributor

@npriebe npriebe commented Jul 11, 2022

In my case, I was creating a ReconnectTask to connect to my WebSocket server.
Here I noticed that the method start() or startInternal() in the abstract class ConnectionManagerSupport always sets the boolean running to true. And it does this even if the connection could not be established.
This means that it is not possible to add a retry-handling if the method start() or startInternal() can successfully establish the connection to the server.

But to be able to check yourself if the connection was successfully established you need access to the method isConnected().

But if there is another way to enable retry-handling for the connection to the server, an answer would help me.

@pivotal-cla
Copy link

@npriebe Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jul 11, 2022
@rstoyanchev rstoyanchev self-assigned this Aug 1, 2022
@rstoyanchev rstoyanchev added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Aug 1, 2022
@rstoyanchev rstoyanchev added this to the 5.3.23 milestone Aug 1, 2022
@rstoyanchev rstoyanchev changed the title Change isConnected() boolean to public in WebSocketConnectionManager Make isConnected() in WebSocketConnectionManager public Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants