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
m (explained the type property) |
(Started clean protocol specification) |
||
Line 1: | Line 1: | ||
− | = | + | = Basics = |
− | The communication is based on | + | 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]] |