MqttContext

  
class MqttContext extends BaseRpcContext {
  constructor(args: MqttContextArgs)
  getTopic()
  getPacket()

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

Constructor


constructor(args: MqttContextArgs)

Parameters

Option Type Description
args MqttContextArgs

Methods

getTopic()

Returns the name of the topic.


getTopic()

Parameters

There are no parameters.

getPacket()

Returns the reference to the original MQTT packet.


getPacket()

Parameters

There are no parameters.