mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
main
broadcast is now working
This commit is contained in:
+1
-1
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user