mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-08-31 19:08:29 +00:00
feat: more debug testing
This commit is contained in:
parent
3eaa86905f
commit
d2877f2cec
13 changed files with 192 additions and 18 deletions
|
|
@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue