Added ConnectAsync method to the WebSocket class

This commit is contained in:
sta
2014-01-05 16:02:54 +09:00
parent e7d3a2bb17
commit 58c392f37a
3 changed files with 151 additions and 103 deletions

View File

@@ -200,14 +200,14 @@ namespace WebSocketSharp.Server
{
_context = context;
_sessions = sessions;
_websocket = context.WebSocket;
_websocket.CookiesValidation = ValidateCookies;
_websocket.OnOpen += onOpen;
_websocket.OnMessage += onMessage;
_websocket.OnError += onError;
_websocket.OnClose += onClose;
_websocket.Connect ();
_websocket.ConnectAsServer ();
}
#endregion