ultralight-beam / UB.ts

Typescript implementation of Ultralight Beam

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Message Encoding / Decoding

decanus opened this issue · comments

Write an encoder and decoder for messages that can contain arbitrary data. This will need a wire protocol. My proposal is to use something simple like:

<header-length><body-length><header><body>

where header contains:

<message-type><other-data>