Skip to content

Instantly share code, notes, and snippets.

@devoncarew
Created October 9, 2013 08:04
Show Gist options
  • Save devoncarew/6897835 to your computer and use it in GitHub Desktop.
Save devoncarew/6897835 to your computer and use it in GitHub Desktop.
possible pub server protocol
sample request
{
"method": "uriToAsset",
"id": <number>,
"params": {
"uri": "<relative uri path>"
}
}
sample response
{
"id": <number>,
"error": <object>,
"result": {
"package": "<package>",
"path": "<path>"
}
}
event (pub server => client):
{
"method": "fooBarEvent",
"params": {
"foo": "bar"
}
}
@munificent
Copy link

IDs are fine with me. Is there a reason to stuff the params in a separate map?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment