@nestjs/microservices
Version:
Nest - modern, fast, powerful node.js web framework (@microservices)
22 lines (21 loc) • 571 B
TypeScript
import { BaseRpcContext } from './base-rpc.context';
type RmqContextArgs = [Record<string, any>, any, string];
/**
* @publicApi
*/
export declare class RmqContext extends BaseRpcContext<RmqContextArgs> {
constructor(args: RmqContextArgs);
/**
* Returns the original message (with properties, fields, and content).
*/
getMessage(): Record<string, any>;
/**
* Returns the reference to the original RMQ channel.
*/
getChannelRef(): any;
/**
* Returns the name of the pattern.
*/
getPattern(): string;
}
export {};