Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • T

Hierarchy

  • Subscription

Index

Properties

isReconnect

isReconnect: boolean = false

onDisconnectCallback

onDisconnectCallback: function

Type declaration

    • (): void
    • Returns void

onMessageCallback

onMessageCallback: function

Type declaration

    • (message: T): void
    • Parameters

      • message: T

      Returns void

onReconnectCallback

onReconnectCallback: function

Type declaration

    • (): void
    • Returns void

Private unsubscribeFn

unsubscribeFn: function

Type declaration

    • (): void
    • Returns void

Methods

close

  • close(): void

onDisconnect

  • onDisconnect(callback: function): this
  • Parameters

    • callback: function
        • (): void
        • Returns void

    Returns this

onMessage

  • onMessage(callback: function): this
  • Parameters

    • callback: function
        • (message: T): void
        • Parameters

          • message: T

          Returns void

    Returns this

onReconnect

  • onReconnect(callback: function): this
  • Parameters

    • callback: function
        • (): void
        • Returns void

    Returns this

setUnsubscribeFn

  • setUnsubscribeFn(unsubscribeFn: function): void
  • Parameters

    • unsubscribeFn: function
        • (): void
        • Returns void

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc