Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • EventEmitter
    • Connection

Index

Properties

connection

connection: { serverProperties: ServerProperties }

Type declaration

Methods

addListener

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

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

          • Rest ...args: any[]

          Returns void

    Returns Connection

close

  • close(): Bluebird<void>
  • Returns Bluebird<void>

createChannel

  • createChannel(): Bluebird<Channel>
  • Returns Bluebird<Channel>

createConfirmChannel

  • Returns Bluebird<ConfirmChannel>

emit

  • emit(event: string | symbol, ...args: any[]): boolean
  • Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

eventNames

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

getMaxListeners

  • getMaxListeners(): number
  • Returns number

listenerCount

  • listenerCount(event: string | symbol): number
  • Parameters

    • event: string | symbol

    Returns number

listeners

  • listeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

off

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

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

          • Rest ...args: any[]

          Returns void

    Returns Connection

on

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

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

          • Rest ...args: any[]

          Returns void

    Returns Connection

once

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

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

          • Rest ...args: any[]

          Returns void

    Returns Connection

prependListener

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

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

          • Rest ...args: any[]

          Returns void

    Returns Connection

prependOnceListener

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

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

          • Rest ...args: any[]

          Returns void

    Returns Connection

rawListeners

  • rawListeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

removeAllListeners

  • removeAllListeners(event?: string | symbol): Connection
  • Parameters

    • Optional event: string | symbol

    Returns Connection

removeListener

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

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

          • Rest ...args: any[]

          Returns void

    Returns Connection

setMaxListeners

  • Parameters

    • n: number

    Returns Connection

Generated using TypeDoc