public static void Start() { var url = "ws://" + ConfigurationManager.AppSettings["ip"] + ":" + ConfigurationManager.AppSettings["wsport"]; SysConsole.WSServerUrl = url; var server = new WebSocketServer(url); server.Start(socket => { string id = Guid.NewGuid().ToString(); Client client = new Client(id,socket); clients.Add(id,client); SysConsole.ClientCount = clients.Count; SysConsole.Display(); }); }
public Layout(Client client) { _client = client; }