akwizgran created page: ForumApp

akwizgran
2015-04-13 11:55:07 +00:00
parent b9a952925c
commit 27604ec1df

@@ -7,19 +7,18 @@ TransportApp uses a single channel with a random identifer:
### Message types
**0: PROPERTIES** - The content is a [BDF](BDF) list with three elements: `transport_id` (string), `version` (int), and `properties` (dictionary). `transport_id` and `properties` are supplied by the transport plugin. `version` is incremented whenever the properties change.
**0: UPDATE** - The content is a [BDF](BDF) list with three elements: `transport_id` (string), `version` (int), and `properties` (dictionary). `transport_id` and `properties` are supplied by the transport plugin. `version` is incremented whenever the properties change.
### Validation
* A message of type PROPERTIES is valid if it is well-formed.
* An UPDATE is valid if it is well-formed.
### Storage policy
* Invalid messages are not stored.
* For each transport, the local message with the highest version is stored, and any other versions are deleted.
* For each transport and each remote device, the remote message with the highest version is stored, and any other versions are deleted.
* For each transport, the valid local message with the highest version is stored, any other versions are deleted.
* For each transport and each remote device, the valid remote message with the highest version is stored, any other versions are deleted.
### Sharing policy
* Local messages are shared with all remote devices.
* Valid local messages are shared with all remote devices.
* Remote messages are not shared with other remote devices.