Method | Description | |
---|---|---|
CheckSupportedWebSocketRequest ( string method, string>.IEnumerable |
||
CreateRequestKey ( ) : string |
"The value of this header field MUST be a nonce consisting of a randomly selected 16-byte value that has been base64-encoded."
|
|
CreateResponseKey ( string requestKey ) : string |
"...the base64-encoded SHA-1 of the concatenation of the |Sec-WebSocket-Key| (as a string, not base64-decoded) with the string '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'"
|
|
GenerateResponseHeaders ( string key, string subProtocol ) : string>>.IEnumerable |
||
IsRequestKeyValid ( string value ) : bool |
Validates the Sec-WebSocket-Key request header "The value of this header field MUST be a nonce consisting of a randomly selected 16-byte value that has been base64-encoded."
|
|
IsResponseKeyValid ( string value ) : bool |
public static CheckSupportedWebSocketRequest ( string method, string>.IEnumerable |
||
method | string | |
headers | string>.IEnumerable | |
return | bool |
public static CreateResponseKey ( string requestKey ) : string | ||
requestKey | string | |
return | string |
public static GenerateResponseHeaders ( string key, string subProtocol ) : string>>.IEnumerable |
||
key | string | |
subProtocol | string | |
return | string>>.IEnumerable |
public static IsRequestKeyValid ( string value ) : bool | ||
value | string | |
return | bool |
public static IsResponseKeyValid ( string value ) : bool | ||
value | string | |
return | bool |