UNPKG

react-ts5-remote-app-api

Version:

React hook/api for the TeamSpeak5 remote app feature

13 lines (12 loc) 483 B
import { ITSRemoteAppOptions } from "../interfaces/api"; import { IClient, IChannel, IConnection } from "../interfaces/teamspeak"; export default function useTSRemoteApp(options: ITSRemoteAppOptions): { clients: IClient[]; channels: IChannel[]; connections: IConnection[]; activeConnectionId: number; currentConnection: IConnection | undefined; currentChannel: IChannel | undefined; currentClient: IClient | undefined; clientsInChannel: IClient[]; };