Modified AcceptWebSocket method with subprotocol

This commit is contained in:
sta
2014-05-06 15:24:54 +09:00
parent b519af5f95
commit 85e567bd72
7 changed files with 37 additions and 12 deletions

View File

@@ -489,7 +489,7 @@ namespace WebSocketSharp.Server
return;
if (context.Request.IsUpgradeTo ("websocket")) {
acceptWebSocketRequest (context.AcceptWebSocket (_logger));
acceptWebSocketRequest (context.AcceptWebSocket (null, _logger));
return;
}

View File

@@ -476,7 +476,7 @@ namespace WebSocketSharp.Server
ThreadPool.QueueUserWorkItem (
state => {
try {
var context = client.GetWebSocketContext (_cert, _secure, _logger);
var context = client.GetWebSocketContext (null, _cert, _secure, _logger);
if (_authSchemes != AuthenticationSchemes.Anonymous &&
!authenticateRequest (_authSchemes, context))
return;