-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Open
Labels
area-signalrIncludes: SignalR clients and serversIncludes: SignalR clients and serversbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.feature-client-javaRelated to the SignalR Java clientRelated to the SignalR Java client
Milestone
Description
We don't differentiate between a null result and no result in the Java client today. Looking at the .NET client we have a hasResult
parameter when constructing the CompletionMessage
public CompletionMessage(string invocationId, string? error, object? result, bool hasResult) |
vs. no
hasResult
in the Java client.Line 15 in e9a9108
public CompletionMessage(Map<String, String> headers, String invocationId, Object result, String error) { |
This causes code like below to never complete the client-side invoke:
class MyHub : Hub
{
Task<string?> Get()
{
return Task.FromResult<string?>(null);
}
}
connection.invoke(String.class, "Get").blockingGet();
alexeygritsenko
Metadata
Metadata
Assignees
Labels
area-signalrIncludes: SignalR clients and serversIncludes: SignalR clients and serversbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.feature-client-javaRelated to the SignalR Java clientRelated to the SignalR Java client