예제 #1
0
        static void Main(string[] args)
        {
            WsClient.Open();
            while (true)
            {
                Console.WriteLine("type whatever to send. press q+Enter to stop");
                var read = Console.ReadLine();
                if (read == "q")
                {
                    break;
                }

                WsClient.Send(read);
            }

            WsClient.Close();
        }
예제 #2
0
파일: Agent.cs 프로젝트: bluehook/nanogame
 public void Close()
 {
     client.Close();
 }