"a protocol between client and server that supports RPC, the client subscribing to documents and the server sending changes about those documents"
"a unique chance to define interoperability in realtime websockets, as http did for request response"
CLIENT SERVER
=> connect
<= connected
<= failed
=> ping
<= pong
CLIENT SERVER
=> sub
<= added
<= added
<= ready
<= changed
<= removed
=> unsub
<= nosub
CLIENT SERVER
=> method
<= result
<= changed
<= updated
{
"msg": "result",
"id": "1",
"error": {
"error": 404,
"reason": "Method not found",
"message": "Method not found [404]",
"errorType": "Method.Error"
}
}
https://github.com/peterpeerdeman/ddp-the-real-time-api-for-web-applications