-
Notifications
You must be signed in to change notification settings - Fork 353
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
add auto reconnection option #987
Comments
Hey, I have a similar problem... I've been working on this project https://github.com/ivangfr/springboot-rsocket-webflux-aop where I use rsocket. The project is composed of One problem that I see in my solution is that, once I have changed the Now, I am creating
However, it's not working. Basically,
Update Btw, I can start all services using the profile The previous execution was using Running now the simulation using the
Now, trying to connect to
|
@ivangfr in your case you have not added the
Also, your setup works only for a specific transport, thus changing "on-flight" between websocket and tcp will not work at all, since in that case the client will be still trying to reconnect via the websocket transport |
Thanks @OlegDokuka It works! So, I needed to do the following config
In fact, I don't change the transport on the fly. As I described in the README, the user needs to pick (during the startup) the profile. It can be So, if
Thanks again for the help! |
just a link to another example which shows the need for this feature (see #1039) |
It would be convenient to have two options for setting up a connection: lazy on any first call and automatic when the server is available. For example, chat. It is desirable that the running client automatically connects to the server and shows the server availability as soon as possible.
The first option works great, but for the second it have to make an additional crutch.
Thanks to Oleg @OlegDokuka.
He helped in an optimal solution to this issue.
This works great.
But it would be more convenient to implement a similar option out of the box. So that you can choose one of two options in the connection settings (lazy or auto-connect). It is even possible to set the condition for switching from one mode to another at runtime.
The text was updated successfully, but these errors were encountered: