@nestjs/microservices
Version:
Nest - modern, fast, powerful node.js web framework (@microservices)
19 lines (18 loc) • 455 B
TypeScript
import { TcpSocket } from '../helpers';
import { BaseRpcContext } from './base-rpc.context';
type TcpContextArgs = [TcpSocket, string];
/**
* @publicApi
*/
export declare class TcpContext extends BaseRpcContext<TcpContextArgs> {
constructor(args: TcpContextArgs);
/**
* Returns the underlying JSON socket.
*/
getSocketRef(): TcpSocket;
/**
* Returns the name of the pattern.
*/
getPattern(): string;
}
export {};