WebSocketBehaviorCookiesValidator Property |
Namespace: Sfs2X.WebSocketSharp.Server
public Func<CookieCollection, CookieCollection, bool> CookiesValidator { get; set; }
A Func<CookieCollection, CookieCollection, bool> delegate or if not needed.
The delegate invokes the method called when the WebSocket instance for a session validates the handshake request.
1st CookieCollection parameter passed to the method contains the cookies to validate if present.
2nd CookieCollection parameter passed to the method receives the cookies to send to the client.
The method must return true if the cookies are valid.
The default value is .