mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
websocket
add same check from broadcast
This commit is contained in:
@@ -105,6 +105,10 @@ void Websocket::process_messages()
|
||||
{
|
||||
std::lock_guard<std::mutex> guard(m_connection_lock);
|
||||
std::string response = m_on_message(a.msg->get_payload());
|
||||
if (response.empty() || response == "{}")
|
||||
{
|
||||
continue;
|
||||
}
|
||||
m_server.send(a.hdl, response, websocketpp::frame::opcode::TEXT);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user