@nestjs/microservices
Version:
Nest - modern, fast, powerful node.js web framework (@microservices)
15 lines (14 loc) • 425 B
TypeScript
import { BaseRpcContext } from './base-rpc.context';
type MqttContextArgs = [string, Record<string, any>];
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 {};