UNPKG

455 BTypeScriptView Raw
1import { TcpSocket } from '../helpers';
2import { BaseRpcContext } from './base-rpc.context';
3type TcpContextArgs = [TcpSocket, string];
4/**
5 * @publicApi
6 */
7export declare class TcpContext extends BaseRpcContext<TcpContextArgs> {
8 constructor(args: TcpContextArgs);
9 /**
10 * Returns the underlying JSON socket.
11 */
12 getSocketRef(): TcpSocket;
13 /**
14 * Returns the name of the pattern.
15 */
16 getPattern(): string;
17}
18export {};