advertised constant

List<ClientCapability> const advertised

The capabilities this SDK advertises.

Compression is advertised unconditionally on native, where the Rust core always provides deflate-raw. Web has no Rust core and so advertises nothing — a v2 sender then falls back to uncompressed multi-packet for it, which every client understands.

Implementation

static const List<ClientCapability> advertised = kIsWeb
    ? <ClientCapability>[]
    : [ClientCapability.compressionDeflateRaw];