Skip to content

Conversation

@wtgodbe
Copy link
Member

@wtgodbe wtgodbe commented Dec 31, 2020


For more information on this limitation, see GitHub issue [aspnet/SignalR#2937](https://github.com/aspnet/SignalR/issues/2937).

### Passing Class information in Java
Copy link
Member

Choose a reason for hiding this comment

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

This isn't specific to MessagePack is it?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, but it's only required in MessagePack, JSON still works without it. I could move this to java-client.md and call out the differences there.

Copy link
Member

Choose a reason for hiding this comment

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

How does JSON manage to work without it given the type erasure? It's also probably worth pointing out type erasure is the reason a TypeReference is necessary.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, you're right, I was remembering wrong - JSON had the same issue with more complex types but we hadn't noticed before. I'll move this segment & expand it now.

Copy link
Member Author

Choose a reason for hiding this comment

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

@halter73
Copy link
Member

halter73 commented Jan 5, 2021

Once https://docs.microsoft.com/en-us/java/api/com.microsoft.signalr?view=aspnet-signalr-java is updated for 5.0, we should link to the TypeReference docs from here.

@halter73
Copy link
Member

halter73 commented Jan 5, 2021

@BrennanConroy @Rick-Anderson What do we have to do to update the SignalR Java client API docs for 5.0?

@Rick-Anderson
Copy link
Contributor

@BrennanConroy @Rick-Anderson What do we have to do to update the SignalR Java client API docs for 5.0?

@scottaddie ?

@wtgodbe wtgodbe merged commit 891c8e1 into master Jan 8, 2021
@wtgodbe wtgodbe deleted the wtgodbe/MessagePack branch January 8, 2021 00:08
@wtgodbe wtgodbe mentioned this pull request Jan 8, 2021
halter73 added a commit that referenced this pull request Jan 14, 2021
* Add docs for MessagePack

* Triple up

* Update messagepackhubprotocol.md

* Update aspnetcore/signalr/messagepackhubprotocol.md

Co-authored-by: Rick Anderson <[email protected]>

* Update aspnetcore/signalr/messagepackhubprotocol.md

Co-authored-by: Rick Anderson <[email protected]>

* Update aspnetcore/signalr/messagepackhubprotocol.md

Co-authored-by: Rick Anderson <[email protected]>

* Update aspnetcore/signalr/messagepackhubprotocol.md

Co-authored-by: Rick Anderson <[email protected]>

* Update aspnetcore/signalr/messagepackhubprotocol.md

Co-authored-by: Rick Anderson <[email protected]>

* Feedback 1

* More feedback

* Move TypeReference info to Java-client.md

* Update aspnetcore/signalr/java-client.md

Co-authored-by: Stephen Halter <[email protected]>

* Feedback

* Update aspnetcore/signalr/java-client.md

Co-authored-by: Stephen Halter <[email protected]>

Co-authored-by: Rick Anderson <[email protected]>
Co-authored-by: Stephen Halter <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5.0 docs: MessagePack support in SignalR Java client

7 participants