There was an error while loading. Please reload this page.
The communication between nodes is wrapped in Messages.
The maximum size of a message is 10 MiB (10 * 2^20 bytes).
10 MiB
10 * 2^20 bytes
A message is serialized as follows:
uint32_t
magic
0x42042042
var_uint
type
length
checksum
binary
body
Currently, there are 33 different types of messages in use.
The serialized message is then split in chunks and sent using the encoding defined in DataChannel.js.
DataChannel.js
Before messages are sent out to the network, they are split in chunks not more than 16 KiB (16 * 2^10 bytes) long.
16 KiB
16 * 2^10 bytes
A chunk is encoded as follows:
uint8_t
tag
chunk
Chunks are currently transmitted over two types of connections.
ws://
wss://