Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConnectionActivityMonitorImpl

Implementation of ConnectionActivityMonitor

Hierarchy

  • ConnectionActivityMonitorImpl

Implements

Index

Constructors

constructor

  • Create a new ConnectionActivityMonitor instance

    Parameters

    • pingTimeout: number

      timeout for pings in milliseconds

    • connection: Connection

      the connection being monitored

    Returns ConnectionActivityMonitorImpl

Properties

Private connection

connection: Connection

The connection being monitored

Private currentTimeout

currentTimeout: any = null

The handle to the current timeout callback

Private pingTimeout

pingTimeout: number

Timeout for pings in milliseconds

Methods

onSystemPing

  • onSystemPing(): void
  • Called when a system ping is received from the server.

    Returns void

shutdown

  • shutdown(): void