Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • WsConnection

Implements

Index

Constructors

  • Parameters

    • url: string

    Returns WsConnection

Properties

events: EventEmitter
onClose: any
onOpen: any
onPayload: any
register: any
registering: any
socket: any
url: string

Accessors

  • get connected(): boolean
  • Returns boolean

  • get connecting(): boolean
  • Returns boolean

Methods

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

  • off(event: string, listener: any): void
  • Parameters

    • event: string
    • listener: any

    Returns void

  • on(event: string, listener: any): void
  • Parameters

    • event: string
    • listener: any

    Returns void

  • once(event: string, listener: any): void
  • Parameters

    • event: string
    • listener: any

    Returns void

  • open(url?: string): Promise<void>
  • Parameters

    • Optional url: string

    Returns Promise<void>

  • removeListener(event: string, listener: any): void
  • Parameters

    • event: string
    • listener: any

    Returns void

  • Parameters

    Returns Promise<void>

Generated using TypeDoc