Received bundle announcement event.
bundle_announcement(const protocol::event_data &event)
Received encrypted message event (kind 40001)
encrypted_message(const protocol::event_data &event)
Received End of Stored Events marker.
eose(const protocol::eose &msg)
Received identity announcement event.
identity_announcement(const protocol::event_data &event)
Received node status announcement.
node_status(const protocol::event_data &event)
Received OK response from relay.
ok(const protocol::ok &msg)
Received session establishment request.
session_request(const protocol::event_data &event)
Received unknown/unrecognized message type.
unknown_message(const protocol::event_data &event)
Received unknown protocol message.
unknown_protocol(std::string msg)
std::string message
Raw message content.
Bundle announcement to publish.
bundle_announcement(const protocol::event_data &event)
Encrypted message to send.
encrypted_message(const protocol::event_data &event)
Identity announcement to publish.
identity_announcement(const protocol::event_data &event)
Plaintext message before encryption.
plaintext_message(std::string recipient_id, std::string msg)
std::string recipient
Recipient RDX fingerprint or alias.
std::string message
Message content.
Session establishment request to send.
session_request(const protocol::event_data &event)
Nostr subscription request.
std::string subscription_json
JSON-formatted subscription filter.
subscription_request(std::string sub_json)
auto get_subscription_id() const -> std::string
Extracts the subscription ID from the JSON.
End of Stored Events marker.
Nostr event data structure.
Nostr OK response message.