public WebSocketService(ISocketServer server) { _server = server; _server.ClientConnected += ClientConnected; _server.ClientDisconnected += ClientDisconnected; _server.Shutdown += Shutdown; _server.AddMessageHandle(ClientMessage); }