@nestjs/microservices
Version:
Nest - modern, fast, powerful node.js web framework (@microservices)
19 lines (18 loc) • 544 B
TypeScript
import { PacketMetadata } from '../interfaces/packet.interface.js';
import { BaseRpcContext } from './base-rpc.context.js';
type RedisContextArgs = [string, PacketMetadata?];
/**
* @publicApi
*/
export declare class RedisContext extends BaseRpcContext<RedisContextArgs> {
constructor(args: RedisContextArgs);
/**
* Returns the name of the channel.
*/
getChannel(): string;
/**
* Returns the metadata the client attached to the packet, if any.
*/
getMetadata(): PacketMetadata | undefined;
}
export {};