react-teamspeak-remote-app-api
Version:
React hook/api for the TeamSpeak5/6 remote app feature
13 lines (12 loc) • 483 B
TypeScript
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[];
};