Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MockEngineWebsocketModule

Indexable

[name: string]: any

Index

Constructors

Methods

Constructors

constructor

Methods

call

  • call<T>(command: string, args?: any[]): T | null
  • Call method on the module

    Type parameters

    • T

    Parameters

    • command: string

      Name of the method to call on the module

    • Optional args: any[]

      Array of arguments to pass to the method being called

    Returns T | null

listen

  • listen<T>(prop_name: string, next: (_: any) => void): Subscription
  • Subscribe to value changes on the given property

    Type parameters

    • T

    Parameters

    • prop_name: string

      Name of the property

    • next: (_: any) => void

      Callback for changes to the property

        • (_: any): void
        • Parameters

          • _: any

          Returns void

    Returns Subscription

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