|
ORE Studio 0.0.4
|
Server-initiated notification of an entity change. More...
#include <subscription_protocol.hpp>

Public Member Functions | |
| std::vector< std::byte > | serialize () const |
| Serialize notification to bytes. | |
Static Public Member Functions | |
| static std::expected< notification_message, error_code > | deserialize (std::span< const std::byte > data) |
| Deserialize notification from bytes. | |
Public Attributes | |
| std::string | event_type |
| The event type that occurred. | |
| std::chrono::system_clock::time_point | timestamp |
| Timestamp of when the change occurred (UTC). | |
Server-initiated notification of an entity change.
This is a push message from the server to subscribed clients. It does not expect a response.
| std::vector< std::byte > serialize | ( | ) | const |
Serialize notification to bytes.
Format:
| std::chrono::system_clock::time_point timestamp |
Timestamp of when the change occurred (UTC).
Clients can use this to query for changes since this timestamp.