mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
websocket
split broadcast out of message function
This commit is contained in:
@@ -38,9 +38,11 @@ int main(void)
|
||||
g_web_socket = &web_socket;
|
||||
|
||||
std::thread message_processor_thread(std::bind(&Websocket::process_messages, &web_socket));
|
||||
std::thread broadcast_processor_thred(std::bind(&Websocket::process_broadcast, &web_socket));
|
||||
|
||||
// Run the asio loop with the main thread
|
||||
web_socket.run();
|
||||
|
||||
message_processor_thread.join();
|
||||
broadcast_processor_thred.join();
|
||||
}
|
||||
Reference in New Issue
Block a user