emotiv-ts
Version:
A Typescript library that wraps the Cortex API functionalities to communicate with Emotiv headsets
16 lines (15 loc) • 544 B
JavaScript
import { CortexRequest } from "../../internal/cortex-request";
import { Emotiv } from "../../../enums/internal/emotiv.consts";
import { Requests } from "../../../enums/internal/emotiv.requests";
export class CreateSession extends CortexRequest {
constructor(authToken, headsetId) {
super();
this.id = Requests.CREATE_SESSION;
this.method = "createSession";
this.params = {
"cortexToken": authToken,
"headset": headsetId,
"status": Emotiv.SESSION_ACTIVE
};
}
}