|
Radix Relay
Hybrid mesh communications with Signal Protocol encryption
|
Nostr REQ subscription request. More...
#include <protocol.hpp>
Public Member Functions | |
| auto | serialize () const -> std::string |
| Serializes REQ to JSON string. | |
Static Public Member Functions | |
| static auto | deserialize (const std::string &json) -> std::optional< req > |
| Deserializes REQ from JSON. | |
Public Attributes | |
| std::string | subscription_id |
| Unique identifier for this subscription. | |
| nlohmann::json | filters |
| Filter criteria (NIP-01 format) | |
Nostr REQ subscription request.
Sent to relays to subscribe to events matching filter criteria.
Definition at line 186 of file protocol.hpp.
|
static |
Deserializes REQ from JSON.
| json | JSON string |
| auto radix_relay::nostr::protocol::req::serialize | ( | ) | const -> std::string |
Serializes REQ to JSON string.
| nlohmann::json radix_relay::nostr::protocol::req::filters |
Filter criteria (NIP-01 format)
Definition at line 189 of file protocol.hpp.
| std::string radix_relay::nostr::protocol::req::subscription_id |
Unique identifier for this subscription.
Definition at line 188 of file protocol.hpp.