events
- Sessions API
Listen for session specific events by registering on the events
endpoint using HTTP long polling.
GET /api/sessions/<token>/events
{
"type": "String",
"data": "String"
}
- type: the type of event that occurred.
- data: the actual payload of the event
Request
GET /api/sessions/6fdbd1a0-c339-11e9-b775-6d49dd567772/events
Response
{
"type": "status",
"data": "paused"
}