Skip to main content
reference

Event

namespace: privmx::endpoint::core

Holds the information about an event.

Constructors

Event

Event class constructor

Event(
const std::string &type
)

NameTypeDescription
typeconst std::string &event type

Fields

type

Holds the type of the event

std::string type

channel

Holds the channel of the event

std::string channel

connectionId

ID of the connection (unique)

int64_t connectionId

Methods

toJSON

Converts Event data to JSON string

virtual std::string toJSON() const =0

TypeDescription
std::string JSON string