UNPKG

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