From 4f6b060c54dd6c8e3af983384045369d80796074 Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Thu, 22 Aug 2024 11:20:52 +0200 Subject: [PATCH] main broadcast is now working --- tools/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/main.cpp b/tools/main.cpp index fa94b85..77e03e9 100644 --- a/tools/main.cpp +++ b/tools/main.cpp @@ -34,7 +34,7 @@ int main(void) // The server starts in this thread - Websocket web_socket(9002, [](std::string message) { return message; }, []() { return ""; }); + Websocket web_socket(9002, [](std::string message) { return message; }, []() { return g_simulators.changed_UI_items().dump(); }); g_web_socket = &web_socket; std::thread message_processor_thread(std::bind(&Websocket::process_messages, &web_socket));