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