TsgcWebSocketClient › Properties › Extensions
Enables WebSocket protocol extensions such as per-message deflate compression.
public TsgcWSExtensions Extensions { get; set; }
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 = new TsgcWebSocketClient();
oClient.URL = "wss://www.esegece.com:2053";
oClient.Extensions.PerMessage_Deflate.Enabled = true;
oClient.Active = true;