Created
October 9, 2013 08:04
-
-
Save devoncarew/6897835 to your computer and use it in GitHub Desktop.
possible pub server protocol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
IDs are fine with me. Is there a reason to stuff the params in a separate map?