UNPKG

emotiv-ts

Version:

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

25 lines (24 loc) 1.05 kB
import { HeadsetService } from "./headset.service"; import { AuthenticationService } from "./authentication.service"; import { SessionService } from "./session.service"; import type { Application } from "../models/application"; import { w3cwebsocket } from 'websocket'; import { DataStreamService } from "./data-stream.service"; import type { DataStream } from "../enums/data-stream.enum"; import type { ProfileActions } from "../enums/profile-action.enum"; export declare class EmotivService { application: Application; socket: w3cwebsocket; authToken: any; sessionId: string | undefined; headsetId: any; headsetService: HeadsetService; authenticationService: AuthenticationService; sessionService: SessionService; dataStreamService: DataStreamService; constructor(socketUrl: string, application: Application); connect(): Promise<unknown>; readData(streams: Array<DataStream>, action: (data: any) => void): void; setupProfile(name: string, action: ProfileActions): void; private getSessionInfo; }