WebSocket proto file
For now BigONE's spot websocket api supports the proto
protcol.
With Protocol Buffers, you can get many benefits:
- message size is 10 times smaller than the json format.
- faster decoding.
- less memory usage.
- Strong typing.
You can receive the messages faster as the message body is much more smaller.
How to use
Just set the Sec-WebSocket-Protocol
header to proto
.
Then sever will send you binary messages, and you should decode them with the websocket.proto
file.