defaultMaxMessageSize constant

int const defaultMaxMessageSize

The largest message a peer may send unless the socket is given another limit.

A frame or a message over it closes the socket with 1009. The peer names the size before the bytes arrive, so without a limit it would name the allocation too.

Implementation

static const defaultMaxMessageSize = 16 << 20;