Interface ServerClientConnection

interface ServerClientConnection {
    authorization: string;
    clusters: number[];
    connection: Socket | TLSSocket;
    id: string;
    server: Server;
    shards: number[];
    type: string;
    close(reason?, allowReconnect?): Promise<boolean>;
    destroy(reason?): boolean;
    pause(): void;
    ping(data?, timeout?): Promise<number>;
    request(data, timeout?): Promise<any>;
    resume(): void;
    send(data): Promise<void>;
}

Hierarchy

  • Connection
    • ServerClientConnection

Properties

authorization: string
clusters: number[]
connection: Socket | TLSSocket
id: string
server: Server
shards: number[]
type: string

Methods

  • Parameters

    • Optional reason: any
    • Optional allowReconnect: boolean

    Returns Promise<boolean>

  • Parameters

    • Optional reason: any

    Returns boolean

  • Returns void

  • Parameters

    • Optional data: any
    • Optional timeout: number

    Returns Promise<number>

  • Parameters

    • data: any
    • Optional timeout: number

    Returns Promise<any>

  • Returns void

  • Parameters

    • data: any

    Returns Promise<void>

Generated using TypeDoc