This method is to cancel a subscription that was previously created by the subscribe method.
The parameter streams must contain one or more values, chosen from this list: "eeg", "mot", "dev", "pow", "met", "com", "fac", "sys". See Data Subscription for details.
The result is an object that includes these fields:
In case of success, you get an object with these fields:
In case of failure, you get an object with these fields:
Unsubscribe successfully from the performance metrics and motion streams.
Name
Type
Required
Description
cortexToken
string
yes
A token returned by authorize.
session
string
yes
A session id returned by createSession.
streams
array of strings
yes
The data streams you want to unsubscribe to.
Name
Type
Description
success
array of objects
For each stream you successfully unsubscribed to, this array contains an object with the name of the stream.
failure
array of objects
For each stream you failed to unsubscribed to, this array contains an object that describes the error.
Name
Type
Description
streamName
string
The name of the stream.
Name
Type
Description
streamName
string
The name of the stream.
code
number
The error code.
message
string
The error message.