TsgcWebSocketClient › Properties › Extensions
Enables WebSocket protocol extensions such as per-message deflate compression.
property Extensions: TsgcWSExtensions read GetExtensions write SetExtensions;
PerMessage_Deflate.Enabled=False
When the server supports compression, enabling Extensions.PerMessage_Deflate reduces bandwidth by applying deflate compression to outgoing frames. The extension is negotiated during the handshake; if the server rejects it the connection falls back to uncompressed frames.
oClient := TsgcWebSocketClient.Create(nil);
oClient.URL := 'wss://www.esegece.com:2053';
oClient.Extensions.PerMessage_Deflate.Enabled := true;
oClient.Active := true;