TsgcWebSocketServerProperties › Specifications

Specifications Property

Enables or disables the WebSocket protocol specifications the server will accept.

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 negotiates which specification is used per connection; if the client requests a spec that is disabled the handshake fails and the connection is rejected.

Example


oServer := TsgcWebSocketServer.Create(nil);
oServer.Specifications.RFC6455 := true;
oServer.Specifications.Hixie76 := false;
oServer.Active := true;

Back to Properties