UNPKG

536 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.TcpContext = void 0;
4const base_rpc_context_1 = require("./base-rpc.context");
5class TcpContext extends base_rpc_context_1.BaseRpcContext {
6 constructor(args) {
7 super(args);
8 }
9 /**
10 * Returns the underlying JSON socket.
11 */
12 getSocketRef() {
13 return this.args[0];
14 }
15 /**
16 * Returns the name of the pattern.
17 */
18 getPattern() {
19 return this.args[1];
20 }
21}
22exports.TcpContext = TcpContext;