kernl API
    Preparing search index...

    Variable DIRECT_MAX_PAYLOAD_BYTESConst

    DIRECT_MAX_PAYLOAD_BYTES: 16384 = 16_384

    The largest JSON payload one message may carry, in bytes.

    new TextEncoder().encode(JSON.stringify(payload)).length <= DIRECT_MAX_PAYLOAD_BYTES; // else the send is refused