TsgcWebSocketProxyServerProperties › Specifications

Specifications Property

Enables or disables the WebSocket protocol specifications the proxy will accept from downstream clients.

Syntax

property Specifications: TsgcWSSpecifications read GetSpecifications write SetSpecifications;

Default Value

RFC6455=True, Hixie76=True

Remarks

Keep RFC6455 enabled — this is the standard, recommended WebSocket specification. Hixie76 is an obsolete draft only useful to support legacy browsers such as Safari 4.2; disable it unless you specifically need that compatibility. The handshake is negotiated per downstream connection; if the client requests a spec that is disabled the handshake fails and the connection is rejected before the proxy opens the upstream link to the server configured in Proxy.

Example


oProxy := TsgcWebSocketProxyServer.Create(nil);
oProxy.Specifications.RFC6455 := true;
oProxy.Specifications.Hixie76 := false;
oProxy.Proxy.Host := 'upstream.example.com';
oProxy.Proxy.Port := 8080;
oProxy.Active := true;

Back to Properties