UNPKG

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