public void Run() { TcpSocket.Register(OnConnect, OnClose, OnMessage, Log); //string host = "127.0.0.1"; string host = "111.230.108.129"; int port = 8888; TcpSocket.Connect(host, port); while (true) { //Console.WriteLine("tcpsocket.Dispatch"); ClientLogic(); FixUpdated(); Thread.Sleep(2000); } }