Created
August 18, 2015 09:09
-
-
Save Tapped/47d5ce8339102ff3205c to your computer and use it in GitHub Desktop.
Fuse 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
=== TPC === | |
=== Fuse Messaging Protocol === | |
... | |
<MessageType>\n | |
<MessagePayloadLength>\n | |
<MessagePayload> | |
... | |
=== Event protocol === | |
type: "Event" | |
payload: <json> | |
=== Request protocol === | |
type: "Request" | "Response" | |
payload: <json> | |
Event | |
43 | |
{ | |
Name: "Fuse.BarEvent" | |
Data: | |
{ | |
WasABigBar: true, | |
... | |
} | |
} | |
Request | |
42 | |
{ | |
Id: 23452, | |
Name: "Fuse.FooRequest", | |
Arguments: | |
{ | |
HowManyFoos: 4, | |
ShouldBar: true, | |
... | |
} | |
} | |
Response | |
453 | |
{ | |
Id: 23452, | |
Status: "Success", | |
Result: | |
{ | |
Foos: ["F", "U", "S", "E"], | |
... | |
}, | |
Errors: | |
[ | |
{ | |
Code: 0, | |
Message: "" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment