Followup to https://github.com/dotnet/aspnetcore/issues/21644 and https://github.com/dotnet/aspnetcore/pull/23532 The `.on()` methods in HubProtocol should handle primitive classes the same way that `.invoke()` does: https://github.com/dotnet/aspnetcore/blob/4ecde5f6b0d1aba59c7bd0646e20e7b16a78f767/src/SignalR/clients/java/signalr/src/main/java/com/microsoft/signalr/HubConnection.java#L699-L704