RmqContext

  
class RmqContext extends BaseRpcContext {
  constructor(args: RmqContextArgs)
  getMessage()
  getChannelRef()
  getPattern()

  // inherited from nest/packages/microservices/BaseRpcContext
  constructor(args: T)
  protected args: T
  getArgs(): T
  getArgByIndex(index: number)
}

Constructor


constructor(args: RmqContextArgs)

Parameters

Option Type Description
args RmqContextArgs

Methods

getMessage()

Returns the original message (with properties, fields, and content).


getMessage()

Parameters

There are no parameters.

getChannelRef()

Returns the reference to the original RMQ channel.


getChannelRef()

Parameters

There are no parameters.

getPattern()

Returns the name of the pattern.


getPattern()

Parameters

There are no parameters.