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 |
| The id of this session. |
status |
| Can be "opened", "activated", or "closed". |
owner |
| The EmotivID of the user. |
license |
| The id of the license used by this session. Or an empty string if the session wasn't activated. |
appId |
| The application id of your Cortex app. |
started |
| When this session was created. |
stopped |
| When this session was closed. |
streams |
| The data streams you subscribed to. See subscribe. |
recordIds |
| The ids of all the records created by this session. See createRecord. |
recording |
| True if a record is currently in progress for this session. False otherwise. |
headset |
| A headset object. It contains information about the headset linked to this session. |
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 | The session was created with createSession, but it doesn't use a license. You can activate or close this session with updateSession. |
activated | The session was activated with a license. You can close this session with updateSession. |
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