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

We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.