[openscreenprotocol] [Protocol] Hand-rolled binary protocol?

cynthia has just created a new issue for https://github.com/webscreens/openscreenprotocol:

== [Protocol] Hand-rolled binary protocol? ==
As discussed earlier during TPAC, I've noticed that the protocol is a hand-rolled binary protocol. I'm wondering if this is the best way forward, since the spec isn't in a stage whether or not this information should be exposed raw to the application. (I'm guessing in this context, it would be de-serialized in advance by the user agent)

Unfortunately JSON _might_ not be the best option for this use case, since the commands are streamed from what I understand. But using a battle tested serialization format would probably be a better way forward.

RFC7049 http://cbor.io from IETF is one option (also mentioned earlier), but I remember reading something about a technical bug on this - I'll have to dig up the details, but IIRC it was related to unicode handling so this may not apply to your use case.

Please view or discuss this issue at https://github.com/webscreens/openscreenprotocol/issues/77 using your GitHub account

Received on Tuesday, 7 November 2017 00:50:53 UTC