Skip to content

Instantly share code, notes, and snippets.

@Tapped
Created August 18, 2015 09:09
Show Gist options
  • Save Tapped/47d5ce8339102ff3205c to your computer and use it in GitHub Desktop.
Save Tapped/47d5ce8339102ff3205c to your computer and use it in GitHub Desktop.
Fuse protocol
=== 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