UNPKG

ts3-nodejs-library

Version:
34 lines (33 loc) 973 B
/// <reference types="node" /> import { EventEmitter } from "events"; import { ConnectionParams } from "../../TeamSpeak"; import { TeamSpeakQuery } from "../TeamSpeakQuery"; export declare class ProtocolRAW extends EventEmitter implements TeamSpeakQuery.QueryProtocolInterface { private socket; chunk: string; constructor(config: ConnectionParams); /** * Called after the socket was not able to connect within the given timeframe */ private handleTimeout; /** * Called after the Socket has been established */ private handleConnect; /** * called when the Socket emits an error */ private handleError; /** * called when the connection with the Socket gets closed */ private handleClose; /** * called when the Socket receives data * Splits the data with every newline */ private handleData; send(str: string): void; sendKeepAlive(): void; close(): void; }