TsgcWebSocketHTTPServerPropiedades › Specifications

Specifications Propiedad

Habilita o deshabilita las especificaciones del protocolo WebSocket que el servidor aceptará.

Sintaxis

property Specifications: TsgcWSSpecifications read GetSpecifications write SetSpecifications;

Valor Predeterminado

RFC6455=True, Hixie76=True

Observaciones

Mantenga RFC6455 habilitado: esta es la especificación WebSocket estándar y recomendada. Hixie76 es un borrador obsoleto útil únicamente para dar soporte a navegadores heredados como Safari 4.2; desactívelo a menos que necesite específicamente esa compatibilidad. El handshake negocia qué especificación se usa por conexión; si el cliente solicita una especificación deshabilitada, el handshake falla y la conexión se rechaza.

Ejemplo


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

Volver a Propiedades