Click or drag to resize

WebSocketBehaviorOriginValidator Property

Gets or sets the delegate used to validate the Origin header included in a WebSocket handshake request to the service.

Namespace:  Sfs2X.WebSocketSharp.Server
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public Func<string, bool> OriginValidator { get; set; }

Property Value

Type: FuncString, Boolean

A Func<string, bool> delegate or if not needed.

The delegate invokes the method called when the WebSocket instance for a session validates the handshake request.

The String parameter passed to the method is the value of the Origin header or if the header is not present.

The method must return true if the header value is valid.

The default value is .

See Also