Пример #1
0
        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();
            });
        }
Пример #2
0
 public Layout(Client client)
 {
     _client = client;
 }