UNPKG

emotiv-ts

Version:

A Typescript library that wraps the Cortex API functionalities to communicate with Emotiv headsets

15 lines (14 loc) 465 B
import { CortexRequest } from "../../internal/cortex-request"; import { Requests } from "../../../enums/internal/emotiv.requests"; export class Subscribe extends CortexRequest { constructor(authToken, sessionId, streams) { super(); this.id = Requests.SUB_REQUEST; this.method = "subscribe"; this.params = { "cortexToken": authToken, "session": sessionId, "streams": streams }; } }