Пример #1
0
        static void Main(string[] args)
        {
            LobbyService server = new LobbyService();

            server.Start("http://localhost:1944/WebsocketHttpListenerDemo/");
            Console.WriteLine("Press a key to exit.");
            Console.ReadKey();
        }
Пример #2
0
        static void Main(string[] args)
        {
            var lobby = new LobbyService();

            while (true)
            {
                if (Console.ReadLine() == "exit")
                {
                    break;
                }
            }
            lobby.Close();
        }