From b7a1b356d286056ced750886022a3dfa2bbe4350 Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 1 May 2025 16:36:03 +0900 Subject: [PATCH] [Modify] Polish it --- Example3/Program.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Example3/Program.cs b/Example3/Program.cs index 321eb14a..5d592a4a 100644 --- a/Example3/Program.cs +++ b/Example3/Program.cs @@ -180,18 +180,24 @@ namespace Example3 } ); + // Start the server. httpsv.Start (); if (httpsv.IsListening) { - Console.WriteLine ("Listening on port {0}, and providing WebSocket services:", httpsv.Port); + Console.WriteLine ( + "Listening on port {0}, and providing WebSocket services:", + httpsv.Port + ); foreach (var path in httpsv.WebSocketServices.Paths) Console.WriteLine ("- {0}", path); } Console.WriteLine ("\nPress Enter key to stop the server..."); + Console.ReadLine (); + // Stop the server. httpsv.Stop (); } }