PrivMX DOCS
API Reference/PrivMX Endpoint/Core

Event

Holds the information about an event.

Constructors

Event

Event class constructor

Params

type

const std::string &

event type

Event(
const std::string &type
)

Fields

type

std::string Holds the type of the event

channel

std::string Holds the channel of the event

connectionId

int64_t ID of the connection (unique)

Methods

toJSON

Converts Event data to JSON string

virtual std::string toJSON() const =0

Returns

std::string · JSON string