Session object
A session is the link between your application and a headset.
You must create a session before you call subscribe to receive data from a headset. See createSession.
Description
A session object includes these fields:
Name
Type
Description
id
string
The id of this session.
status
string
Can be "opened", "activated", or "closed".
owner
string
The EmotivID of the user.
license
string
The id of the license used by this session. Or an empty string if the session wasn't activated.
appId
string
The application id of your Cortex app.
started
string (ISO datetime)
When this session was created.
stopped
string (ISO datetime)
When this session was closed.
streams
array of strings
recordIds
array of strings
recording
boolean
True if a record is currently in progress for this session. False otherwise.
headset
object
Status
The status is linked to the license. If the session is activated, it will be debited from the quota of the user's license.
Status
Description
opened
activated
closed
This session is closed, you cannot use it anymore.
Examples
A session with an Epoc+ headset. It is not activated. We subscribed to the performance metrics and motion data.
Last updated