UNPKG

react-teamspeak-remote-app-api

Version:
16 lines (15 loc) 964 B
import { IChannel, IClient, IConnection, ITS5ConnectionHandler, ITS5DataHandler, ITS5MessageHandler } from "../../interfaces/teamspeak"; import { ILogger } from "../../utils/logger"; import { ITSRemoteAppAuthPayloadOptions } from "../../interfaces/api"; export declare class TS5ConnectionHandler implements ITS5ConnectionHandler { ws: WebSocket; authenticated: boolean; remoteAppPort: number; logger: ILogger; authPayload: ITSRemoteAppAuthPayloadOptions; dataHandler: ITS5DataHandler; messageHandler: ITS5MessageHandler; constructor(remoteAppPort: number, authPayload: ITSRemoteAppAuthPayloadOptions, logger: ILogger, setConnections: React.Dispatch<React.SetStateAction<IConnection[]>>, setChannels: React.Dispatch<React.SetStateAction<IChannel[]>>, setClients: React.Dispatch<React.SetStateAction<IClient[]>>, setActiveConnectionStateId: React.Dispatch<React.SetStateAction<number>>); reconnect(): void; connect(): void; }