Skip to main content

Channel: Session Worker State

Get updates about the state of the worker which is analyzing a session (only available for sessions created through the external API). When subscribing to this channel the last known state (if any) for the worker will be sent inmediatly.

Channel

Name

session_worker_state

Key Template

sessionId

Events Type

sws

Key Parameters

sessionId
string
ID of the session do you want to track emotions from.
Example: 66151895e00a857bd76f889d

Key example

66151895e00a857bd76f889d

Event fields

WORKER_STATE
enum SessionWorkerState
State in which the worker has just entered
Example: working

Event data structure

session_worker_state event structure
[
SUBSCRIPTION_ID,
EVENT_TIMESTAMP,
"sws",
[
WORKER_STATE
]
]

Event example

session_worker_state event example
[
"luug96xrbbc594",
"2024-04-14T23:00:30.000Z",
"sws",
[
"working"
]
]