Rough work on protocol refactoring

Jan Safranek jsafrane at redhat.com
Fri Feb 14 11:42:46 UTC 2014


On 02/13/2014 03:26 PM, Stef Walter wrote:
> So as we discussed elsewhere ... past proof-of-concept, our internal
> protocol needs a bit better framing in order to handle the modularity
> stuff and be extensible.
> 
>  * Use only one Websocket for efficiency
>  * Connect out to multiple DBus services (not just cockpitd)
>  * Support multiple payload types in future (not only dbus-json)
>  * Alternate credentials (ie: initial setup)
> 
> Here's a first whack at documenting what it might look like:
> 
> https://github.com/stefwalter/cockpit/blob/protocol-refactor/doc/protocol.md

The protocol looks usable, I would only add also 'protocol version'
field, this can save a lot of headache when you consider moving from
json to something else.

Out of curiosity, are there any alternative already defined/used protocols?


Jan


More information about the cockpit-devel mailing list