feat: more debug testing

This commit is contained in:
Neil Dorin
2023-11-23 23:11:36 -07:00
parent 3eaa86905f
commit d2877f2cec
13 changed files with 192 additions and 18 deletions

View File

@@ -49,6 +49,7 @@ namespace PepperDash.Essentials.Core.Web.RequestHandlers
port = new Random().Next(65435, 65535);
// Start the WS Server
Debug.WebsocketSink.StartServerAndSetPort(port);
Debug.SetWebSocketMinimumDebugLevel(Serilog.Events.LogEventLevel.Verbose);
}
var url = Debug.WebsocketSink.Url;
@@ -84,10 +85,11 @@ namespace PepperDash.Essentials.Core.Web.RequestHandlers
{
Debug.WebsocketSink.StopServer();
context.Response.StatusDescription = "Ending Debug Session";
context.Response.StatusCode = 200;
context.Response.StatusDescription = "OK";
context.Response.End();
Debug.Console(0, "Websocket Debug Session Stopped");
}
}