Property GatewayCompressionLevel
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.dll
GatewayCompressionLevel
Sets the level of compression for WebSocket traffic.
Disabling this option will increase the amount of traffic sent via WebSocket. Setting Payload will enable compression for READY and GUILD_CREATE payloads. Setting System.IO.Stream will enable compression for the entire WebSocket stream, drastically reducing amount of traffic.
Defaults to None.
public GatewayCompressionLevel GatewayCompressionLevel { set; }
Property Value
Remarks
This property's default has been changed from Stream due to a bug in the client wherein rapid reconnections causes payloads to be decompressed into a mangled string.