Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ClientNats

Hierarchy

Index

Constructors

constructor

Properties

Protected connection

connection: Promise<any>

Protected logger

logger: any = new Logger(ClientProxy.name)

Protected natsClient

natsClient: Client

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

createSubscriptionHandler

Protected dispatchEvent

emit

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

Protected getOptionsProp

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

handleError

  • handleError(client: Client): void

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