Updated Client Server protocol draft (markdown)
parent
d2ecdea008
commit
bef589412d
1 changed files with 14 additions and 8 deletions
|
@ -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.
|
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',`
|
<tr>
|
||||||
`'body' : 'function helloWorld(x,y): {return x+y+2};'`
|
<td><#ref_num></td> <td>__define</td> <td>"JavaScript"</td>
|
||||||
`}`
|
<td><#ref_num></td> <td>__start</td> <td></td>
|
||||||
`}`
|
<td><#ref_num></td> <td>__stop</td> <td>Optional Message</td>
|
||||||
|
<td><#ref_num></td> <td>__boot</td> <td></td>
|
||||||
|
<td><#ref_num></td> <td>__error</td> <td>Optional message</td>
|
||||||
|
<td><#ref_num></td> <td>COMMAND</td> <td>Optional parameters</td>
|
||||||
|
<tr> <td>
|
||||||
|
|
||||||
`{'call' : { 'name' : 'HelloWorld',`
|
</table>
|
||||||
`'params' : '5,6',`
|
|
||||||
`}`
|
|
||||||
`}`
|
|
Reference in a new issue