Debugger: Serve a simple log listener WebSocket.

Planning to add more functionality to it, and sharing the reporting port
is possibly not ideal - although it would make discovery easier.
This commit is contained in:
Unknown W. Brackets committed 2018-06-08 06:59:16 -07:00
1 parent d1b06bbd41
commit c2b9b5a9e8
8 files changed
+168 -1

No files matched your search

+4
View File
@@ -29,6 +29,7 @@
#include "Common/FileUtil.h"
#include "Common/Log.h"
#include "Core/Config.h"
#include "Core/Debugger/WebSocket.h"
#include "Core/WebServer.h"
enum class ServerStatus {
@@ -188,6 +189,9 @@ static void ExecuteWebServer() {
if (serverFlags & (int)WebServerFlags::DISCS) {
RegisterDiscHandlers(http, &discPaths);
}
if (serverFlags & (int)WebServerFlags::DEBUGGER) {
http->RegisterHandler("/debugger", &HandleDebuggerRequest);
}
if (!http->Listen(g_Config.iRemoteISOPort)) {
if (!http->Listen(0)) {