Skip to content

Commit cd9581d

Browse files
Only send control events to the control client
(cherry picked from commit 5f205b6811567ab8d92651ae0d549da1d18eb92c)
1 parent 530bfce commit cd9581d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Development/nmos/control_protocol_ws_api.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,10 @@ namespace nmos
499499

500500
for (const auto& event : nmos::fields::message_grain_data(grain->data).as_array())
501501
{
502+
// Only send control events to the control client
503+
if (event.has_field(U("pre")) || event.has_field(U("post"))) {
504+
continue;
505+
}
502506
web::websockets::websocket_outgoing_message message;
503507

504508
slog::log<slog::severities::too_much_info>(gate, SLOG_FLF) << "outgoing_message: " << event.serialize();

0 commit comments

Comments
 (0)