예제 #1
0
파일: Program.cs 프로젝트: cmgator/Symbiote
 public WebSocketService(ISocketServer server)
 {
     _server = server;
     _server.ClientConnected += ClientConnected;
     _server.ClientDisconnected += ClientDisconnected;
     _server.Shutdown += Shutdown;
     _server.AddMessageHandle(ClientMessage);
 }
예제 #2
0
 public WebSocketService(ISocketServer server)
 {
     _server = server;
     _server.ClientConnected    += ClientConnected;
     _server.ClientDisconnected += ClientDisconnected;
     _server.Shutdown           += Shutdown;
     _server.AddMessageHandle(ClientMessage);
 }