static void Main(string[] args) { Thread.Sleep(1000); Connect("ws://localhost/wsDemo").Wait(); Console.WriteLine("Press any key to exit..."); Console.ReadKey(); }