Difference between revisions of "Protocol Design"


Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /www/htdocs/w0102f68/fos/wiki/includes/MagicWord.php on line 902
From FOS Wiki
Jump to: navigation, search
m (explained the type property)
(Started clean protocol specification)
Line 1: Line 1:
= Protocol =
+
= Basics =
The communication is based on JSON objects. As first property every object has a "type" string, which determines the structure of the json object.
+
The hole communication is based on a TCP/IP connection.
 +
The server and the client communicate to each other through UTF-8 encoded messages.
 +
 
 +
== Message ==
 +
A message is a json encoded object. Each message has a common "type" property, which determines it's type.
 +
The message ends with the determination of the json object: }
  
 
= Login - Logout =
 
= Login - Logout =
 
[[File:protocol-login-logout.png]]
 
[[File:protocol-login-logout.png]]

Revision as of 13:56, 6 February 2014