Interface WebSocketInterface

interface WebSocketInterface {
    on(event: string | symbol, listener: ((...args: any[]) => void)): this;
    once(event: string | symbol, listener: ((...args: any[]) => void)): this;
    removeAllListeners(event?: string | symbol): this;
    removeListener(event: string | symbol, listener: ((...args: any[]) => void)): this;
    start(): void;
    stop(): void;
}

Methods

  • Parameters

    • event: string | symbol
    • listener: ((...args: any[]) => void)
        • (...args): void
        • Parameters

          • Rest...args: any[]

          Returns void

    Returns this

  • Parameters

    • event: string | symbol
    • listener: ((...args: any[]) => void)
        • (...args): void
        • Parameters

          • Rest...args: any[]

          Returns void

    Returns this

  • Parameters

    • event: string | symbol
    • listener: ((...args: any[]) => void)
        • (...args): void
        • Parameters

          • Rest...args: any[]

          Returns void

    Returns this