BRPC
A binary-only RPC protocol for websockets (think socket.io, only faster).
Usage
var http = ;var brpc = ;var rpc = brpc;var server = http;var socket;rpc;rpc;server;socket = brpc;socket;
Why?
Most websocket-based protocols use JSON. JSON is big and slow. In many cases when needing to send binary data over a convential websocket protocol, the programmer is forced to use hex strings inside of the JSON serialization. This is inefficient.
BRPC works only with binary data. Furthermore, most event-based abstractions on top of websockets introduce an enormous amount of bloat due to the inclusion of fallback transports (xhr, longpolling, etc) as well as even higher level abstractions (channels).
BRPC gives you a simple event based interface and nothing else. No channels, no fallback, no complicated handshakes or feature testing over HTTP.
Specification
See spec.md
.
Contribution and License Agreement
If you contribute code to this project, you are implicitly allowing your code
to be distributed under the MIT license. You are also implicitly verifying that
all code is your original work. </legalese>
License
- Copyright (c) 2017, Christopher Jeffrey (MIT License).
See LICENSE for more info.