[Modify] Add it

This commit is contained in:
sta 2018-04-28 20:43:06 +09:00
parent c0398c5bc1
commit c2dd7beb90

View File

@ -430,6 +430,19 @@ namespace WebSocketSharp.Net.WebSockets
#endregion
#region Private Methods
private HttpRequest sendAuthenticationChallenge (string challenge)
{
var res = HttpResponse.CreateUnauthorizedResponse (challenge);
var bytes = res.ToByteArray ();
_stream.Write (bytes, 0, bytes.Length);
return HttpRequest.Read (_stream, 15000);
}
#endregion
#region Internal Methods
internal bool Authenticate (