Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SharedChannelOutboundMessage is always json encoded #50

Open
daviddawson opened this issue Apr 4, 2017 · 0 comments
Open

SharedChannelOutboundMessage is always json encoded #50

daviddawson opened this issue Apr 4, 2017 · 0 comments

Comments

@daviddawson
Copy link
Member

SharedSocketRoute.java:65
Codecs.EncodingResult result = codecs.encode(outboundMessage, new String[] {"application/json"});

This is done this way because the discovery isn't available to sniff the acceptable content types of the remote, and we don't have this type of state naturally bound to the entire channel when it is composed.

This forces a json encoding at the low level when it may not be necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant