Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Server

Hierarchy

Index

Properties

Protected logger

logger: any = new Logger(Server.name)

Protected messageHandlers

messageHandlers: any = new Map<string, MessageHandler>()

Methods

addHandler

  • addHandler(pattern: any, callback: MessageHandler, isEventHandler?: boolean): void

getHandlerByPattern

getHandlers

getOptionsProp

  • getOptionsProp<T, K>(obj: T, prop: K, defaultValue?: T[K]): T[K]
  • Type parameters

    • T: any

    • K: keyof T

    Parameters

    • obj: T
    • prop: K
    • Default value defaultValue: T[K] = undefined

    Returns T[K]

Protected handleError

  • handleError(error: string): void

handleEvent

  • handleEvent(pattern: string, packet: ReadPacket): Promise<any>

Protected loadPackage

  • loadPackage<T>(name: string, ctx: string, loader?: Function): T

send

  • send(stream$: Observable<any>, respond: function): Subscription

transformToObservable

  • transformToObservable<T>(resultOrDeffered: any): Observable<T>

Generated using TypeDoc