I do not know, I have spent some time searching for a solution, but did not find any. I have found that calling dispose is the way to stop the stream. But I could not find how to reestablish the connection. During my research for the blogs, I had difficult times to find good documentation for rsocket, certainly when trying to solve problems. If you are able to find the answer to your question, I would like to know it also ;-)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks you for nice tutorial, but how can we close connection in Request-stream scenario ? between client and server ?
Thank you for the comment. It is a good question. I have added a close method now in the
RSocketClientController
:I hope this answers your question.
Thank you so much, the above code is working fine to close connection.
But if I try to invoke again, getting below error for "request-response"
java.util.concurrent.CancellationException: Disposed.
Is it possible to stop stream the data without closing the connection for request- stream scenario?
I do not know, I have spent some time searching for a solution, but did not find any. I have found that calling dispose is the way to stop the stream. But I could not find how to reestablish the connection. During my research for the blogs, I had difficult times to find good documentation for rsocket, certainly when trying to solve problems. If you are able to find the answer to your question, I would like to know it also ;-)