API Reference/Endpoint/Core
Event
Holds the information about an event.
Constructors
Event
'Event' class constructor
Params
type
const std::string &
event 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)
subscriptions
std::vector< std::string >
List of subscriptions Id for witch it is
timestamp
int64_t
Timestamp of the event
Represents the point in time when event occurred.
- For events received from Bridge, this value comes from Bridge.
- For events generated in the library, this is a local timestamp.
Methods
toJSON
Converts Event's data to JSON string
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.