Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a P3 connection.

Hierarchy

Index

Properties

_cb

_cb: {}

Type declaration

_params

P3 connection parameters

attempts

attempts: number

Connection attempts

connected

connected: boolean

Connected state.

connecting

connecting: boolean

Whether P3 is connecting.

connections

connections: P3Socket[]

Active connections

error

error: boolean

Error state.

ports

ports: any

Ports

Methods

emit

  • emit(event: string, data: any): void
  • Parameters

    • event: string
    • data: any

    Returns void

on

  • on(event: string, callback: Function): void
  • Parameters

    • event: string
    • callback: Function

    Returns void

removeEventListener

  • removeEventListener(event: string, callback: Function): void

Generated using TypeDoc