WebSocketBehaviorOriginValidator Property |
Namespace: Sfs2X.WebSocketSharp.Server
public Func<string, bool> OriginValidator { get; set; }
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 .