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