public WebServerComponent() { PlayerConnected += PlayerConnected_Recieved; _ws = new WebServer(SendResponse, "http://localhost:20160/spele/"); _ws.Run(); Console.WriteLine("A simple webserver. Press a key to quit."); }
static void Main(string[] args) { WebServer ws = new WebServer(SendResponse, "http://localhost:20160/spele/"); ws.Run(); Console.WriteLine("A simple webserver. Press a key to quit."); Console.ReadKey(); ws.Stop(); }