static void Main(string[] args) { LobbyService server = new LobbyService(); server.Start("http://localhost:1944/WebsocketHttpListenerDemo/"); Console.WriteLine("Press a key to exit."); Console.ReadKey(); }
static void Main(string[] args) { var lobby = new LobbyService(); while (true) { if (Console.ReadLine() == "exit") { break; } } lobby.Close(); }