Updated Client Server protocol draft (markdown)

jonte 2011-01-31 05:11:07 -08:00
parent d2ecdea008
commit bef589412d

@ -1,12 +1,18 @@
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.
<table>
<thead>
<tr>
<th>Token</th> <th>Command</th> <th>Arguments</th>
</tr>
`{'define': { 'name' : 'HelloWorld',`
`'body' : 'function helloWorld(x,y): {return x+y+2};'`
`}`
`}`
<tr>
<td>&lt;#ref_num&gt;</td> <td>__define</td> <td>&quot;JavaScript&quot;</td>
<td>&lt;#ref_num&gt;</td> <td>__start</td> <td></td>
<td>&lt;#ref_num&gt;</td> <td>__stop</td> <td>Optional Message</td>
<td>&lt;#ref_num&gt;</td> <td>__boot</td> <td></td>
<td>&lt;#ref_num&gt;</td> <td>__error</td> <td>Optional message</td>
<td>&lt;#ref_num&gt;</td> <td>COMMAND</td> <td>Optional parameters</td>
<tr> <td>
`{'call' : { 'name' : 'HelloWorld',`
`'params' : '5,6',`
`}`
`}`
</table>