From 27604ec1dfb7ed72e1ff7d91c8e20071c16b3fac Mon Sep 17 00:00:00 2001 From: akwizgran Date: Mon, 13 Apr 2015 11:55:07 +0000 Subject: [PATCH] akwizgran created page: ForumApp --- TransportApp.markdown | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/TransportApp.markdown b/TransportApp.markdown index c9cea15..05e009e 100644 --- a/TransportApp.markdown +++ b/TransportApp.markdown @@ -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.