UNPKG

@nestjs/microservices

Version:

Nest - modern, fast, powerful node.js web framework (@microservices)

19 lines (18 loc) 467 B
import { TcpSocket } from '../helpers/index.js'; import { BaseRpcContext } from './base-rpc.context.js'; 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 {};