Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ClientMqtt

Hierarchy

Index

Constructors

constructor

Properties

Protected connection

connection: Promise<any>

Protected logger

logger: any = new Logger(ClientProxy.name)

Protected mqttClient

mqttClient: MqttClient

Protected options

options: any

Protected routingMap

routingMap: any = new Map<string, Function>()

Protected url

url: string

Methods

Protected assignPacketId

close

  • close(): void

connect

  • connect(): Promise<any>

Protected connect$

  • connect$(instance: any, errorEvent?: string, connectEvent?: string): Observable<any>

createClient

Protected createObserver

  • createObserver<T>(observer: Observer<T>): function

createResponseCallback

  • createResponseCallback(): function

Protected dispatchEvent

emit

  • emit<TResult, TInput>(pattern: any, data: TInput): Observable<TResult>

getAckPatternName

  • getAckPatternName(pattern: string): string

Protected getOptionsProp

  • getOptionsProp<T>(obj: any, prop: keyof T["options"], defaultValue?: any): any

getResPatternName

  • getResPatternName(pattern: string): string

handleError

mergeCloseEvent

  • mergeCloseEvent<T>(instance: MqttClient, source$: Observable<T>): Observable<T>

Protected normalizePattern

  • normalizePattern<T>(pattern: T): string

Protected publish

  • publish(partialPacket: ReadPacket, callback: function): Function

send

  • send<TResult, TInput>(pattern: any, data: TInput): Observable<TResult>

Generated using TypeDoc