8 #include <oatpp-websocket/WebSocket.hpp>
36 const oatpp::websocket::WebSocket& conn,
45 const oatpp::websocket::WebSocket& conn,
61 const oatpp::websocket::WebSocket& conn,
63 const std::vector<std::string>& objectNames);
bool matchesSubscription(const DtDatasource::DtAggregateSnapshot &snapshot, const DtWebLvcClientSession &session)
Return true if the snapshot should be sent to this client.
Json::Value buildUpdateMultipleMessage(DtWebLvcClientSession &session, std::vector< DtChangedItem< DtDatasource::DtAggregateSnapshot >> &items)
Build an AggregateAttributeUpdateMultiple message from a list of snapshots. Updates session...
void sendInitialState(const oatpp::websocket::WebSocket &conn, DtWebLvcClientSession &session, DtAggregateProcessor &processor)
Send initial state of all aggregates to a newly connected client. Builds and sends a single Aggregate...
IMGUI_API void Value(const char *prefix, bool b)
DtAggregateProcessor - Lightweight per-client aggregate processor.
Definition: aggregateProcessor.h:29
Definition: updateSenderHelpers.h:17
DtDatasource::DtAggregateSnapshot applyRoleModifications(const DtDatasource::DtAggregateSnapshot &snapshot, const DtWebLvcClientSession &session)
Return a copy of snapshot with role-based field modifications applied (e.g. availableCommands cleared...
void sendPeriodicUpdates(const oatpp::websocket::WebSocket &conn, DtWebLvcClientSession &session, DtAggregateProcessor &processor)
Query all aggregates from the processor, detect changes against the session cache, send a batch AggregateAttributeUpdateMultiple for changed aggregates, and send ObjectDeleted for any that have disappeared. Caller must NOT hold session->mutex.
DtAggregateSnapshot- Complete state of an aggregate entity at a point in time. VRF-agnostic intermedi...
Definition: dataTypes.h:171
WebLVC Client Session - Tracks state for each connected client per SISO-STD-017-2022 Section 5...
Definition: webLVCClientSession.h:28
DtAggregateUpdateSender - Encapsulates all aggregate-specific WebLVC message building and sending log...
Definition: aggregateUpdateSender.h:29
void sendObjectsDeleted(const oatpp::websocket::WebSocket &conn, DtWebLvcClientSession &session, const std::vector< std::string > &objectNames)
Send an ObjectDeletedMultiple message for a set of aggregates that have disappeared. Clears each object's cache entry and stats. Caller must NOT hold session.mutex.