message_protocol 0.1.1

A protocol for seperating binary messages over TCP, similar to WebSockets but more minimal.
Documentation
  • Coverage
  • 100%
    15 out of 15 items documented2 out of 9 items with examples
  • Size
  • Source code size: 12.5 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.84 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • farberbrodsky/message_protocol
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • farberbrodsky

message_protocol

A protocol for seperating binary messages over TCP, similar to WebSockets but more minimal.

Our protocol for message size is similar to WebSockets, but not exactly the same.

If the first byte is 0-253, this is the length of the message content.

If the first byte is 254, read the next 2 bytes, this 16 bit number is the length.

If the first byte is 255, read the next 8 bytes, this 64 bit number is the length.