-
Notifications
You must be signed in to change notification settings - Fork 14
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
Binary support in JSON #25
Comments
Do you mean that in conjunction with wamp-proto/wamp-proto#228 ? Or in general? |
I'll implement it in general, just saw that I forgot about transparent payload as well 🤯 |
No, in general. Payload transparency is a mode where the whole args/kwargs is not a structured object, but itself just a binary value opaque to the router. Hence the name "payload transparency". JSON binary supports allow you to eg do a call with
or
Hence the JSON serializer/deserializer must be able to traverse/process binary values deep inside structured app payload. In AutobahnPython, this is implemented by overriding the "string item processing" hook on the standard JSON serializer/deserializer: In general, this requires that the JSON serializer/deserializer has hooks to do such things ... or it requires a full custom one |
Yes I Did it that way 😊 |
I already pushed and released it |
^ ok, I tested it: seems to work! with JSON (sever side), notice
with MsgPack,
|
WAMP defines an extension to standard JSON that allows transparent support for binary value:
https://wamp-proto.org/_static/gen/wamp_latest_ietf.html#rfc.section.15
AutobahnPython and AutobahnJS support that - would be great to have it in connectanum-dart as well. It's pretty useful, and (in practice) doesn't cause issues (in most host languages)
The text was updated successfully, but these errors were encountered: