TsgcWebSocketLoadBalancerServerProperties › Extensions

Extensions Property

Configures WebSocket protocol extensions such as per-message deflate compression on the load balancer front-end.

Syntax

property Extensions: TsgcWSExtensions read GetExtensions write SetExtensions;

Default Value

PerMessage_Deflate.Enabled=False

Remarks

Enable Extensions.PerMessage_Deflate.Enabled to advertise and negotiate the permessage-deflate compression extension defined in RFC 7692 on the load balancer's public-facing WebSocket listener. If the connecting client does not advertise support, messages are exchanged uncompressed automatically, so there is no interoperability risk. Tune the sub-properties (ServerNoContextTakeOver, ClientNoContextTakeOver, ServerMaxWindowBits, ClientMaxWindowBits, MemLevel) to trade memory against compression ratio. Note that this extension applies to the client-→load-balancer hop; the load balancer does not re-negotiate it with backend servers on the inbound server registration channel.

Example


oServer := TsgcWebSocketLoadBalancerServer.Create(nil);
oServer.Extensions.PerMessage_Deflate.Enabled := true;
oServer.Active := true;

Back to Properties