Skip to content

Add SignalR client results to Java client - #41774

Merged
BrennanConroy merged 3 commits into
mainfrom
brecon/javaReturn
Aug 16, 2022
Merged

BrennanConroy merged 3 commits into
mainfrom
brecon/javaReturn

Conversation

@BrennanConroy

Copy link
Copy Markdown
Member

Part of #5280

In addition to adding client result support, we should also add support for async .On handlers, otherwise we're basically expecting users to have blocking .On handlers when returning results (think wait for user input) which is bad, or that they immediately have a result when called, which isn't great.

Ignore most of the code right now, opening as draft to start looking at the new API being added.

@BrennanConroy BrennanConroy added area-signalr Includes: SignalR clients and servers feature-client-java Related to the SignalR Java client labels May 20, 2022

import io.reactivex.rxjava3.subjects.SingleSubject;

@ExtendWith({RxJavaUnhandledExceptionsExtensions.class})

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Test with an async result?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ignore most of the code right now

Yeah tests need to be written, and need to figure out how to properly wait for the results internally.

@BrennanConroy
BrennanConroy marked this pull request as ready for review August 12, 2022 16:14

@halter73 halter73 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Changing the existing tests to call onComplete() scared me because I thought we might be breaking things, but you convinced me offline it's because of how we're calling into the transport in the unit tests.

@BrennanConroy
BrennanConroy merged commit c109492 into main Aug 16, 2022
@BrennanConroy
BrennanConroy deleted the brecon/javaReturn branch August 16, 2022 00:01
@ghost ghost added this to the 7.0-rc1 milestone Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-signalr Includes: SignalR clients and servers feature-client-java Related to the SignalR Java client

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants