Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ClientRMQ

Hierarchy

Index

Constructors

constructor

Properties

Protected channel

channel: any = null

Protected client

client: any = null

Protected connection

connection: Promise<any>

Protected logger

logger: any = new Logger(ClientProxy.name)

Protected options

options: any

Protected queue

queue: string

Protected queueOptions

queueOptions: any

Protected responseEmitter

responseEmitter: EventEmitter

Protected routingMap

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

Protected urls

urls: string[]

Methods

Protected assignPacketId

close

  • close(): void

connect

  • connect(): Promise<any>

Protected connect$

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

consumeChannel

  • consumeChannel(): void

createChannel

  • createChannel(): Promise<void>

createClient

  • createClient<T>(): T

Protected createObserver

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

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: any): void

handleMessage

  • handleMessage(packet: WritePacket, callback: function): void

mergeDisconnectEvent

  • mergeDisconnectEvent<T>(instance: any, source$: Observable<T>): Observable<T>

Protected normalizePattern

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

Protected publish

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

send

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

setupChannel

  • setupChannel(channel: any, resolve: Function): Promise<void>

Generated using TypeDoc