Skip to content

Instantly share code, notes, and snippets.

@bradygaster-zz
Created August 22, 2012 15:07
Show Gist options
  • Save bradygaster-zz/3426572 to your computer and use it in GitHub Desktop.
Save bradygaster-zz/3426572 to your computer and use it in GitHub Desktop.
static void Main(string[] args)
{
Debug.Listeners.Add(new ConsoleTraceListener());
Debug.AutoFlush = true;
string url = "http://*:8081/";
var server = new Server(url);
server.Configuration.DisconnectTimeout = TimeSpan.Zero;
server.AuthenticationSchemes = AuthenticationSchemes.Ntlm;
server.MapHubs();
server.Start();
Console.WriteLine("Server running on {0}", url);
while (true)
{
ConsoleKeyInfo ki = Console.ReadKey(true);
if (ki.Key == ConsoleKey.X)
{
break;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment