Hi Emile,
aah, right, this old mailing list we never migrated to
https://forum.crossbar.io/ ;)
Am 03.11.21 um 21:08 schrieb Emile Cormier:
"the JSON format does not allow return and newline characters within
primitive values (in strings those must be escaped as \r and \n,
respectively)"
ok. this sounds like a big source of potential non-conformant/weird
implementations in JSON parsers in the wield.
also: only within primitive values.
that is, a single string literal within a serialized JSON must not
contain non-escaped line breaks, right?
> Instead of a JSON array, text-based WAMP messages would be either two
> lines, or N lines, with the last line containing the JSON payload.
>
> In the two-line scheme, the first line would contain a JSON array with
> the command string ("CALL", "PUBLISH", etc), as well as the command
> options. The second line would be the JSON payload.
>
> In the N-line scheme, each line would be an element of the JSON array
> from the original scheme, with the last being the JSON payload.
>
> Alternatively, the JSON payload could be encoded as Base64, but that
> would add both a computational and size cost.
I'm not sure what the goal is? I mean, rather than using the existing
mechanism of using strings with a beginning \0 and non-text binary after
that?
>
> With encodings supporting binary data (such as MsgPack or CBOR), making
> the payload opaque is of course much easier.
you can looks a measured performance numbers here:
https://crossbario.com/docs/benchmarks/serialization/index.html
>
> In hindsight, WAMP should not care about positional or keyword
> arguments. It should be up to the application and client libraries to
> interpret payloads as either multiple arguments, or as a single
> monolithic message.
doing so removes the ability of a WAMP router to transparently translate
between different serializers used by different clients - router side.
but I would agree, the other mode ("payload opaqueness") should probably
be sth we should have in the WAMP BP. it's not sadly
>
> BTW, the feature you call "payload transparency" might be better
> described as "payload opaqueness". :-)
ok! thanks, I'm not a native speaker;)
> --
> You received this message because you are subscribed to the Google
> Groups "WAMP" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
wampws+un...@googlegroups.com
> <mailto:
wampws+un...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/wampws/0d3f8747-7a7e-4ac1-aa96-b4d94e328dcdn%40googlegroups.com
> <
https://groups.google.com/d/msgid/wampws/0d3f8747-7a7e-4ac1-aa96-b4d94e328dcdn%40googlegroups.com?utm_medium=email&utm_source=footer>.