mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +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::lock_guard<std::mutex> guard(m_connection_lock);
|
||||||
std::string response = m_on_message(a.msg->get_payload());
|
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);
|
m_server.send(a.hdl, response, websocketpp::frame::opcode::TEXT);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user