Exemple #1
0
        private void RunChat()
        {
            //try
            //{
            var line = string.Empty;

            while (true)
            {
                line = Reader.ReadLine();
                ChatServer.BroadcastMessage(ChatClient.Id, line);
                if (line == null)
                {
                    break;
                }
            }
            //}
            //catch (Exception exception)
            //{
            //    Console.WriteLine(exception);
            //}
        }