Skip to main content

TransportCompression

@discordeno/gateway


Documentation / @discordeno/gateway / TransportCompression

Enumeration: TransportCompression

Defined in: gateway/src/types.ts:21

Enumeration Members

zlib

zlib: "zlib-stream"

Defined in: gateway/src/types.ts:30

ZLib-Stream Transport Compression.

Remarks

Uses node:zlib to decompress the payloads

See

https://discord.com/developers/docs/topics/gateway#zlibstream


zstd

zstd: "zstd-stream"

Defined in: gateway/src/types.ts:39

ZStd-Stream Transport Compression.

Remarks

Uses fzstd to decompress the payloads. fzstd is an optional dependency, it is required to be installed for this compression.

See

https://discord.com/developers/docs/topics/gateway#zstdstream