Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Protected _status

_status: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(false)

BehaviorSubject holding the connection status of the websocket

Protected _status_obs

_status_obs: Observable<boolean> = this._status.asObservable()

Observable fo the connection status subject value

Protected auth

Protected binding

binding: {}

Subjects for listening to values of bindings

Type declaration

  • [id: string]: BehaviorSubject<any>

debug_events

debug_events: Subject<EngineDebugEvent> = new Subject<EngineDebugEvent>()

Listener for debugging events

Protected keep_alive

keep_alive: number | undefined

Interval ID for the server ping callback

Protected observers

observers: {}

Observers for the binding subjects

Type declaration

  • [id: string]: Observable<any>

Protected options

Protected promise_callbacks

promise_callbacks: {}

Request responders

Type declaration

  • [id: string]: { reject: (_?: any) => void; resolve: (_?: any) => void }
    • reject: (_?: any) => void
        • (_?: any): void
        • Parameters

          • Optional _: any

          Returns void

    • resolve: (_?: any) => void
        • (_?: any): void
        • Parameters

          • Optional _: any

          Returns void

Protected requests

requests: {}

Request promises

Type declaration

Protected websocket

websocket: WebSocketSubject<any> | undefined

Websocket for connecting to engine

Accessors

is_connected

  • get is_connected(): boolean

route

  • get route(): string

Methods

bind

Protected clearHealthCheck

  • clearHealthCheck(): void

Protected connect

  • connect(tries?: number): void

Protected createWebsocket

  • createWebsocket(): void

debug

exec

Protected handleError

Protected handleNotify

Protected handleSuccess

ignore

listen

  • Listen to binding changes on the given status variable

    Type parameters

    • T

    Parameters

    • options: EngineRequestOptions

      Binding details

    • next: (value: T) => void

      Callback for value changes

        • (value: T): void
        • Parameters

          • value: T

          Returns void

    Returns Subscription

Protected onMessage

Protected onWebSocketError

Protected ping

  • ping(): void

Protected reconnect

  • reconnect(): void

Protected send

status

  • status(next: (_: boolean) => void): Subscription
  • Listen to websocket status changes

    Parameters

    • next: (_: boolean) => void
        • (_: boolean): void
        • Parameters

          • _: boolean

          Returns void

    Returns Subscription

unbind

value

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • 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