Modified WebSocketSessionManager.cs and WebSocketServiceHostManager.cs (Modified parameter order of some methods. e.g. SendTo (data, id) -> SendTo (id, data))
This commit is contained in:
@@ -227,7 +227,7 @@ namespace WebSocketSharp.Server
|
||||
|
||||
var path = context.Path;
|
||||
IWebSocketServiceHost host;
|
||||
if (!_serviceHosts.TryGetServiceHostInternally (path, out host))
|
||||
if (path == null || !_serviceHosts.TryGetServiceHostInternally (path, out host))
|
||||
{
|
||||
websocket.Close (HttpStatusCode.NotImplemented);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user