diff --git a/Client---Server-protocol-draft.md b/Client---Server-protocol-draft.md index 7828e87..b90a7d7 100644 --- a/Client---Server-protocol-draft.md +++ b/Client---Server-protocol-draft.md @@ -1,27 +1,128 @@ This is a proposition for the client -> server communication protocol. The idea is that we need to be able to define and call functions, and the very least. +
Token | Command | Arguments | Description | -
---|---|---|---|
Token | +Command | +Arguments | +Description | +
+ | __hello | ++ | + |
<#ref_num> | +__echo | +optional message | ++ |
<#ref_num> | +__define | +"JavaScript" | ++ |
<#ref_num> | +__start | ++ | + |
<#ref_num> | +__stop | +optional message | ++ |
lt;#ref_num> | +__boot | +<#ref_num> <#ref_num> | ++ |
<#ref_num> | +__error | +optional message | ++ |
<#ref_num> | +COMMAND | +optional message | ++ |
Here the <#ref_num> is the clients own <#ref_num>.
+ +Token | +Command | +Arguments | +Description | +
---|---|---|---|
<#ref_num> | +__ok_hello | ++ | + |
<#ref_num> | +__ok_echo | +optional message | ++ |
<#ref_num> | +__ok_define | +"JavaScript" | ++ |
<#ref_num> | +__ok_start | ++ | + |
<#ref_num> | +__ok_stop | +optional message | ++ |
lt;#ref_num> | +___ok_boot | +<#ref_num> <#ref_num> | ++ |
<#ref_num> | +__error | +optional message | ++ |
<#ref_num> | +COMMAND | +optional message | ++ |