fn send_updates(payload: TopicPayload, update_mode: UpdateMode)Expand description
Internal helper function that broadcasts a state payload to all matching client sessions.
Iterates through the global SERVER_STATE and transmits the update to any session
that holds an active TCP connection and matches both the topic and the requested update mode.
Currently, all Update-Modes are handled as OnChange
ยงArguments
payload- The actual data payload to be broadcast.update_mode- The update condition (e.g.,OnChange) that triggered this broadcast.