-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
area-signalrIncludes: SignalR clients and serversIncludes: SignalR clients and servers
Milestone
Description
The .on() methods in HubProtocol should handle primitive classes the same way that .invoke() does:
aspnetcore/src/SignalR/clients/java/signalr/src/main/java/com/microsoft/signalr/HubConnection.java
Lines 699 to 704 in 4ecde5f
| // Primitive types can't be cast with the Class cast function | |
| if (returnType.isPrimitive()) { | |
| subject.onSuccess((T)result); | |
| } else { | |
| subject.onSuccess(returnType.cast(result)); | |
| } |
Metadata
Metadata
Assignees
Labels
area-signalrIncludes: SignalR clients and serversIncludes: SignalR clients and servers