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