Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

Hierarchy

  • Emitter<{ connect: any; disconnect: any; error: any; events: any }>
    • Connector

Index

Constructors

  • Type parameters

    Parameters

    Returns Connector<User>

Properties

isClosed: boolean

Methods

  • addListener<E>(event: E, listener: { connect: any; disconnect: any; error: any; events: any }[E]): Connector<User>
  • Type parameters

    • E: "connect" | "events" | "disconnect" | "error"

    Parameters

    • event: E
    • listener: { connect: any; disconnect: any; error: any; events: any }[E]

    Returns Connector<User>

  • close(code?: number, reason?: string): void
  • connect(): void
  • emit<E>(event: E, ...args: Arguments<{ connect: any; disconnect: any; error: any; events: any }[E]>): boolean
  • Type parameters

    • E: "connect" | "events" | "disconnect" | "error"

    Parameters

    • event: E
    • Rest ...args: Arguments<{ connect: any; disconnect: any; error: any; events: any }[E]>

    Returns boolean

  • eventNames(): (string | symbol)[]
  • Returns (string | symbol)[]

  • getMaxListeners(): number
  • Returns number

  • isConnected(): boolean
  • listenerCount<E>(event: E): number
  • Type parameters

    • E: "connect" | "events" | "disconnect" | "error"

    Parameters

    • event: E

    Returns number

  • listeners<E>(event: E): Function[]
  • Type parameters

    • E: "connect" | "events" | "disconnect" | "error"

    Parameters

    • event: E

    Returns Function[]

  • off<E>(event: E, listener: { connect: any; disconnect: any; error: any; events: any }[E]): Connector<User>
  • Type parameters

    • E: "connect" | "events" | "disconnect" | "error"

    Parameters

    • event: E
    • listener: { connect: any; disconnect: any; error: any; events: any }[E]

    Returns Connector<User>

  • on<E>(event: E, listener: { connect: any; disconnect: any; error: any; events: any }[E]): Connector<User>
  • Type parameters

    • E: "connect" | "events" | "disconnect" | "error"

    Parameters

    • event: E
    • listener: { connect: any; disconnect: any; error: any; events: any }[E]

    Returns Connector<User>

  • once<E>(event: E, listener: { connect: any; disconnect: any; error: any; events: any }[E]): Connector<User>
  • Type parameters

    • E: "connect" | "events" | "disconnect" | "error"

    Parameters

    • event: E
    • listener: { connect: any; disconnect: any; error: any; events: any }[E]

    Returns Connector<User>

  • prependListener<E>(event: E, listener: { connect: any; disconnect: any; error: any; events: any }[E]): Connector<User>
  • Type parameters

    • E: "connect" | "events" | "disconnect" | "error"

    Parameters

    • event: E
    • listener: { connect: any; disconnect: any; error: any; events: any }[E]

    Returns Connector<User>

  • prependOnceListener<E>(event: E, listener: { connect: any; disconnect: any; error: any; events: any }[E]): Connector<User>
  • Type parameters

    • E: "connect" | "events" | "disconnect" | "error"

    Parameters

    • event: E
    • listener: { connect: any; disconnect: any; error: any; events: any }[E]

    Returns Connector<User>

  • rawListeners<E>(event: E): Function[]
  • Type parameters

    • E: "connect" | "events" | "disconnect" | "error"

    Parameters

    • event: E

    Returns Function[]

  • removeAllListeners<E>(event?: E): Connector<User>
  • Type parameters

    • E: "connect" | "events" | "disconnect" | "error"

    Parameters

    • Optional event: E

    Returns Connector<User>

  • removeListener<E>(event: E, listener: { connect: any; disconnect: any; error: any; events: any }[E]): Connector<User>
  • Type parameters

    • E: "connect" | "events" | "disconnect" | "error"

    Parameters

    • event: E
    • listener: { connect: any; disconnect: any; error: any; events: any }[E]

    Returns Connector<User>

  • setMaxListeners(maxListeners: number): Connector<User>
  • Parameters

    • maxListeners: number

    Returns Connector<User>

Generated using TypeDoc