UNPKG

emotiv-ts

Version:

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

15 lines (14 loc) 427 B
import { CortexRequest } from "../../internal/cortex-request"; import { Requests } from "../../../enums/internal/emotiv.requests"; export class QueryHeadsets extends CortexRequest { constructor(headsetId) { super(); this.id = Requests.QUERY_HEADSET; this.method = "queryHeadsets"; if (headsetId) { this.params = { "id": headsetId }; } } }