arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

querySessions

This method returns the list of the sessions created by the current application. You can create a session with createSession.

circle-check

New in 2.0: Sessions are now temporary in-memory objects. So this methods only returns the current sessions, not your past sessions. See Sessions for details.

hashtag
Parameters

hashtag
Result

The result is an array of .

hashtag
Example

Name

Type

Required

Description

cortexToken

string

yes

A token returned by authorize.

session objects
{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "querySessions",
    "params": {
        "cortexToken": "xxx"
    }
}
{
    "id": 1,
    "jsonrpc": "2.0",
    "result": [{
        "id": "8bfc26de-754b-4c1f-9771-acfd1a7da02c",
        "owner": "jon.snow",
        "license": "",
        "appId": "com.jon.snow.winterfell-app",
        "started": "2019-01-29T14:18:45.108+07:00",
        "stopped": "",
        "status": "opened",
        "headset": {
            "connectedBy": "dongle",
            "customName": "",
            "dongle": "6ff",
            "firmware": "625",
            "id": "EPOCPLUS-3B9AXXXX",
            "motionSensors": [
                "GYROX",
                "GYROY",
                "GYROZ",
                "ACCX",
                "ACCY",
                "ACCZ",
                "MAGX",
                "MAGY",
                "MAGZ"
            ],
            "sensors": [
                "AF3",
                "F7",
                "F3",
                "FC5",
                "T7",
                "P7",
                "O1",
                "O2",
                "P8",
                "T8",
                "FC6",
                "F4",
                "F8",
                "AF4"
            ],
            "settings": {
                "eegRate": 256,
                "eegRes": 16,
                "memsRate": 64,
                "memsRes": 16,
                "mode": "EPOCPLUS"
            },
            "status": "connected"
        },
        "recordIds": [],
        "recording": false,
        "streams": ["met"]
    }]
}