UNPKG

@minimaltech/node-infra

Version:

Minimal Technology NodeJS Infrastructure - Loopback 4 Framework

16 lines 673 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NetworkTcpClient = void 0; const node_net_1 = require("node:net"); const base_tcp_client_helper_1 = require("./base-tcp-client.helper"); class NetworkTcpClient extends base_tcp_client_helper_1.BaseNetworkTcpClient { constructor(opts) { super(Object.assign(Object.assign({}, opts), { scope: NetworkTcpClient.name, createClientFn: node_net_1.connect })); this.options = opts.options; } static newInstance(opts) { return new NetworkTcpClient(opts); } } exports.NetworkTcpClient = NetworkTcpClient; //# sourceMappingURL=network-tcp-client.helper.js.map