Browse Source

[Modify] Polish it

pull/571/merge
sta 3 months ago
parent
commit
ab59790010
  1. 8
      Example2/Program.cs

8
Example2/Program.cs

@ -145,18 +145,24 @@ namespace Example2
}
);
// Start the server.
wssv.Start ();
if (wssv.IsListening) {
Console.WriteLine ("Listening on port {0}, and providing WebSocket services:", wssv.Port);
Console.WriteLine (
"Listening on port {0}, and providing WebSocket services:",
wssv.Port
);
foreach (var path in wssv.WebSocketServices.Paths)
Console.WriteLine ("- {0}", path);
}
Console.WriteLine ("\nPress Enter key to stop the server...");
Console.ReadLine ();
// Stop the server.
wssv.Stop ();
}
}

Loading…
Cancel
Save