emotiv-ts
Version:
A Typescript library that wraps the Cortex API functionalities to communicate with Emotiv headsets
12 lines (11 loc) • 445 B
TypeScript
import type { w3cwebsocket } from 'websocket';
export declare class SessionService {
socket: w3cwebsocket;
private static sessionId;
constructor(socket: w3cwebsocket);
createSession(authToken: string, headsetId: string): Promise<string>;
static getSessionId(): string;
activateSession(authToken: string, sessionId: string): void;
closeSession(authToken: string, sessionId: string): void;
private updateSession;
}