Documentation
    Preparing search index...

    Class IMQClientAbstract

    Class IMQClient - base abstract class for service clients.

    Hierarchy

    • EventEmitter
      • IMQClient
    Index

    Constructors

    Properties

    hostName: string
    id: number
    name: string
    queueName: string
    serviceName: string

    Methods

    • Broadcasts given payload to all other service clients subscribed. So this is like client-to-clients publishing.

      Parameters

      • payload: JsonObject

      Returns Promise<void>

    • Sends call to remote service method

      Type Parameters

      • T

      Parameters

      • ...args: any[]

      Returns Promise<T>

      protected

    • Adds subscription to service event channel

      Parameters

      • handler: (data: JsonObject) => any

      Returns Promise<void>

    • Destroys subscription channel to service

      Returns Promise<void>