Exemple #1
0
        private void GoChatRoom()
        {
            string[] roomIds = new string[3] {
                "1001", "1002", "1003"
            };
            string roomId = Console.ReadLine();

            while (true)
            {
                _chatSocket.SendRamMessage($"GOROOM {roomId}\r\n");
                if (roomIds.Contains(roomId))
                {
                    Console.WriteLine("break");
                    break;
                }
                else
                {
                    roomId = Console.ReadLine();
                }
            }
            _isGoChatRoom = true;
        }