Event
namespace: privmx::endpoint::core
Holds the information about an event.
Constructors
Event
Event class constructor
Event(
const std::string &type
)
Name | Type | Description |
---|---|---|
type | const 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
Type | Description |
---|---|
std::string | JSON string |