UNPKG

@nestjs/microservices

Version:

Nest - modern, fast, powerful node.js web framework (@microservices)

18 lines (17 loc) 447 B
import { BaseRpcContext } from './base-rpc.context'; type MqttContextArgs = [string, Record<string, any>]; /** * @publicApi */ export declare class MqttContext extends BaseRpcContext<MqttContextArgs> { constructor(args: MqttContextArgs); /** * Returns the name of the topic. */ getTopic(): string; /** * Returns the reference to the original MQTT packet. */ getPacket(): Record<string, any>; } export {};