@push.rocks/smartproxy 3.0.60 → 3.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -0
- package/dist/smartproxy.classes.proxyworker.d.ts +23 -0
- package/dist/smartproxy.classes.proxyworker.js +262 -0
- package/dist/smartproxy.classes.router.d.ts +16 -0
- package/dist/smartproxy.classes.router.js +41 -0
- package/dist/smartproxy.classes.smartproxy.d.ts +17 -0
- package/dist/smartproxy.classes.smartproxy.js +43 -0
- package/dist/smartproxy.plugins.d.ts +17 -0
- package/dist/smartproxy.plugins.js +43 -0
- package/dist/smartproxy.portproxy.d.ts +6 -0
- package/dist/smartproxy.portproxy.js +38 -0
- package/dist_ts/00_commitinfo_data.d.ts +1 -1
- package/dist_ts/00_commitinfo_data.js +2 -2
- package/dist_ts/smartproxy.classes.networkproxy.js +75 -57
- package/dist_ts/smartproxy.classes.proxyworker.d.ts +33 -0
- package/dist_ts/smartproxy.classes.proxyworker.js +303 -0
- package/dist_ts/smartproxy.classes.smartproxy.d.ts +20 -0
- package/dist_ts/smartproxy.classes.smartproxy.js +38 -0
- package/npmextra.json +18 -2
- package/package.json +27 -9
- package/readme.hints.md +1 -0
- package/readme.md +109 -30
- package/ts/00_commitinfo_data.ts +2 -2
- package/ts/smartproxy.classes.networkproxy.ts +85 -66
package/npmextra.json
CHANGED
|
@@ -2,17 +2,33 @@
|
|
|
2
2
|
"gitzone": {
|
|
3
3
|
"projectType": "npm",
|
|
4
4
|
"module": {
|
|
5
|
-
"githost": "
|
|
5
|
+
"githost": "code.foss.global",
|
|
6
6
|
"gitscope": "push.rocks",
|
|
7
7
|
"gitrepo": "smartproxy",
|
|
8
8
|
"description": "a proxy for handling high workloads of proxying",
|
|
9
9
|
"npmPackagename": "@push.rocks/smartproxy",
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"projectDomain": "push.rocks"
|
|
11
|
+
"projectDomain": "push.rocks",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"proxy",
|
|
14
|
+
"network traffic",
|
|
15
|
+
"high workload",
|
|
16
|
+
"http",
|
|
17
|
+
"https",
|
|
18
|
+
"websocket",
|
|
19
|
+
"network routing",
|
|
20
|
+
"ssl redirect",
|
|
21
|
+
"port mapping",
|
|
22
|
+
"reverse proxy",
|
|
23
|
+
"authentication"
|
|
24
|
+
]
|
|
12
25
|
}
|
|
13
26
|
},
|
|
14
27
|
"npmci": {
|
|
15
28
|
"npmGlobalTools": [],
|
|
16
29
|
"npmAccessLevel": "public"
|
|
30
|
+
},
|
|
31
|
+
"tsdoc": {
|
|
32
|
+
"legal": "\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n"
|
|
17
33
|
}
|
|
18
34
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@push.rocks/smartproxy",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.61",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "a proxy for handling high workloads of proxying",
|
|
6
6
|
"main": "dist_ts/index.js",
|
|
@@ -8,12 +8,6 @@
|
|
|
8
8
|
"type": "module",
|
|
9
9
|
"author": "Lossless GmbH",
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"scripts": {
|
|
12
|
-
"test": "(tstest test/)",
|
|
13
|
-
"build": "(tsbuild --web --allowimplicitany)",
|
|
14
|
-
"format": "(gitzone format)",
|
|
15
|
-
"buildDocs": "tsdoc"
|
|
16
|
-
},
|
|
17
11
|
"devDependencies": {
|
|
18
12
|
"@gitzone/tsbuild": "^2.1.66",
|
|
19
13
|
"@gitzone/tsrun": "^1.2.44",
|
|
@@ -45,5 +39,29 @@
|
|
|
45
39
|
],
|
|
46
40
|
"browserslist": [
|
|
47
41
|
"last 1 chrome versions"
|
|
48
|
-
]
|
|
49
|
-
|
|
42
|
+
],
|
|
43
|
+
"keywords": [
|
|
44
|
+
"proxy",
|
|
45
|
+
"network traffic",
|
|
46
|
+
"high workload",
|
|
47
|
+
"http",
|
|
48
|
+
"https",
|
|
49
|
+
"websocket",
|
|
50
|
+
"network routing",
|
|
51
|
+
"ssl redirect",
|
|
52
|
+
"port mapping",
|
|
53
|
+
"reverse proxy",
|
|
54
|
+
"authentication"
|
|
55
|
+
],
|
|
56
|
+
"homepage": "https://code.foss.global/push.rocks/smartproxy",
|
|
57
|
+
"repository": {
|
|
58
|
+
"type": "git",
|
|
59
|
+
"url": "https://code.foss.global/push.rocks/smartproxy.git"
|
|
60
|
+
},
|
|
61
|
+
"scripts": {
|
|
62
|
+
"test": "(tstest test/)",
|
|
63
|
+
"build": "(tsbuild --web --allowimplicitany)",
|
|
64
|
+
"format": "(gitzone format)",
|
|
65
|
+
"buildDocs": "tsdoc"
|
|
66
|
+
}
|
|
67
|
+
}
|
package/readme.hints.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/readme.md
CHANGED
|
@@ -1,39 +1,118 @@
|
|
|
1
1
|
# @push.rocks/smartproxy
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
##
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Status Category | Status Badge
|
|
13
|
-
-- | --
|
|
14
|
-
GitLab Pipelines | [](https://lossless.cloud)
|
|
15
|
-
GitLab Pipline Test Coverage | [](https://lossless.cloud)
|
|
16
|
-
npm | [](https://lossless.cloud)
|
|
17
|
-
Snyk | [](https://lossless.cloud)
|
|
18
|
-
TypeScript Support | [](https://lossless.cloud)
|
|
19
|
-
node Support | [](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
|
20
|
-
Code Style | [](https://lossless.cloud)
|
|
21
|
-
PackagePhobia (total standalone install weight) | [](https://lossless.cloud)
|
|
22
|
-
PackagePhobia (package size on registry) | [](https://lossless.cloud)
|
|
23
|
-
BundlePhobia (total size when bundled) | [](https://lossless.cloud)
|
|
2
|
+
A proxy for handling high workloads of proxying.
|
|
3
|
+
|
|
4
|
+
## Install
|
|
5
|
+
To install `@push.rocks/smartproxy`, run the following command in your project's root directory:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @push.rocks/smartproxy --save
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
This will add `@push.rocks/smartproxy` to your project's dependencies.
|
|
24
12
|
|
|
25
13
|
## Usage
|
|
26
14
|
|
|
27
|
-
|
|
15
|
+
`@push.rocks/smartproxy` is a versatile package for setting up and handling proxies with various capabilities such as SSL redirection, port proxying, and creating network proxies with complex routing rules. Below is a comprehensive guide on using its features.
|
|
16
|
+
|
|
17
|
+
### Setting Up a Network Proxy
|
|
18
|
+
|
|
19
|
+
Create a network proxy to route incoming HTTPS requests to different local servers based on the hostname.
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { NetworkProxy } from '@push.rocks/smartproxy';
|
|
23
|
+
|
|
24
|
+
// Instantiate the NetworkProxy with desired options
|
|
25
|
+
const myNetworkProxy = new NetworkProxy({ port: 443 });
|
|
26
|
+
|
|
27
|
+
// Define your reverse proxy configurations
|
|
28
|
+
const proxyConfigs = [
|
|
29
|
+
{
|
|
30
|
+
destinationIp: '127.0.0.1',
|
|
31
|
+
destinationPort: '3000',
|
|
32
|
+
hostName: 'example.com',
|
|
33
|
+
privateKey: `-----BEGIN PRIVATE KEY-----
|
|
34
|
+
PRIVATE_KEY_CONTENT
|
|
35
|
+
-----END PRIVATE KEY-----`,
|
|
36
|
+
publicKey: `-----BEGIN CERTIFICATE-----
|
|
37
|
+
CERTIFICATE_CONTENT
|
|
38
|
+
-----END CERTIFICATE-----`,
|
|
39
|
+
},
|
|
40
|
+
// Add more reverse proxy configurations here
|
|
41
|
+
];
|
|
42
|
+
|
|
43
|
+
// Start the network proxy
|
|
44
|
+
await myNetworkProxy.start();
|
|
45
|
+
|
|
46
|
+
// Update proxy configurations dynamically
|
|
47
|
+
await myNetworkProxy.updateProxyConfigs(proxyConfigs);
|
|
48
|
+
|
|
49
|
+
// Optionally, add default headers to all responses
|
|
50
|
+
await myNetworkProxy.addDefaultHeaders({
|
|
51
|
+
'X-Powered-By': 'smartproxy',
|
|
52
|
+
});
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Port Proxying
|
|
56
|
+
|
|
57
|
+
You can also set up a port proxy to forward traffic from one port to another, which is useful for dynamic port forwarding scenarios.
|
|
58
|
+
|
|
59
|
+
```typescript
|
|
60
|
+
import { PortProxy } from '@push.rocks/smartproxy';
|
|
61
|
+
|
|
62
|
+
// Create a PortProxy to forward traffic from port 5000 to port 3000
|
|
63
|
+
const myPortProxy = new PortProxy(5000, 3000);
|
|
64
|
+
|
|
65
|
+
// Start the port proxy
|
|
66
|
+
await myPortProxy.start();
|
|
67
|
+
|
|
68
|
+
// To stop the port proxy, simply call
|
|
69
|
+
await myPortProxy.stop();
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Enabling SSL Redirection
|
|
73
|
+
|
|
74
|
+
Easily redirect HTTP traffic to HTTPS using the `SslRedirect` class. This is particularly useful when ensuring all traffic uses encryption.
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
import { SslRedirect } from '@push.rocks/smartproxy';
|
|
78
|
+
|
|
79
|
+
// Instantiate the SslRedirect on port 80 (HTTP)
|
|
80
|
+
const mySslRedirect = new SslRedirect(80);
|
|
81
|
+
|
|
82
|
+
// Start listening and redirecting to HTTPS
|
|
83
|
+
await mySslRedirect.start();
|
|
84
|
+
|
|
85
|
+
// To stop the redirection, use
|
|
86
|
+
await mySslRedirect.stop();
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Advanced Usage
|
|
90
|
+
|
|
91
|
+
The package integrates seamlessly with TypeScript, allowing for advanced use cases, such as implementing custom routing logic, authentication mechanisms, and handling WebSocket connections through the network proxy.
|
|
92
|
+
|
|
93
|
+
For a more advanced setup involving WebSocket proxying and dynamic configuration reloading, refer to the network proxy example provided above. The WebSocket support demonstrates how seamless it is to work with real-time applications.
|
|
94
|
+
|
|
95
|
+
Remember, when dealing with certificates and private keys for HTTPS configurations, always secure your keys and store them appropriately.
|
|
96
|
+
|
|
97
|
+
`@push.rocks/smartproxy` provides a solid foundation for handling high workloads and complex proxying requirements with ease, whether you're implementing SSL redirections, port forwarding, or extensive routing and WebSocket support in your network.
|
|
98
|
+
|
|
99
|
+
For more information on how to use the features, refer to the in-depth documentation available in the package's repository or the npm package description.
|
|
100
|
+
|
|
101
|
+
## License and Legal Information
|
|
102
|
+
|
|
103
|
+
This repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository.
|
|
104
|
+
|
|
105
|
+
**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.
|
|
106
|
+
|
|
107
|
+
### Trademarks
|
|
28
108
|
|
|
29
|
-
|
|
109
|
+
This project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.
|
|
30
110
|
|
|
31
|
-
|
|
111
|
+
### Company Information
|
|
32
112
|
|
|
33
|
-
|
|
113
|
+
Task Venture Capital GmbH
|
|
114
|
+
Registered at District court Bremen HRB 35230 HB, Germany
|
|
34
115
|
|
|
35
|
-
For
|
|
116
|
+
For any legal inquiries or if you require further information, please contact us via email at hello@task.vc.
|
|
36
117
|
|
|
37
|
-
|
|
38
|
-
> MIT licensed | **©** [Task Venture Capital GmbH](https://task.vc)
|
|
39
|
-
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
|
|
118
|
+
By using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.
|
package/ts/00_commitinfo_data.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* autocreated commitinfo by @
|
|
2
|
+
* autocreated commitinfo by @push.rocks/commitinfo
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@push.rocks/smartproxy',
|
|
6
|
-
version: '3.0.
|
|
6
|
+
version: '3.0.61',
|
|
7
7
|
description: 'a proxy for handling high workloads of proxying'
|
|
8
8
|
}
|
|
@@ -186,64 +186,69 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g=
|
|
|
186
186
|
return endOriginReqRes();
|
|
187
187
|
}
|
|
188
188
|
console.log(destinationUrl);
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
189
|
+
try {
|
|
190
|
+
const proxyResponse = await plugins.smartrequest.request(
|
|
191
|
+
destinationUrl,
|
|
192
|
+
{
|
|
193
|
+
method: originRequest.method,
|
|
194
|
+
headers: {
|
|
195
|
+
...originRequest.headers,
|
|
196
|
+
'X-Forwarded-Host': originRequest.headers.host,
|
|
197
|
+
'X-Forwarded-Proto': 'https',
|
|
198
|
+
},
|
|
199
|
+
keepAlive: true,
|
|
197
200
|
},
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
201
|
+
true, // lets make this streaming
|
|
202
|
+
(proxyRequest) => {
|
|
203
|
+
originRequest.on('data', (data) => {
|
|
204
|
+
proxyRequest.write(data);
|
|
205
|
+
});
|
|
206
|
+
originRequest.on('end', () => {
|
|
207
|
+
proxyRequest.end();
|
|
208
|
+
});
|
|
209
|
+
originRequest.on('error', () => {
|
|
210
|
+
proxyRequest.end();
|
|
211
|
+
});
|
|
212
|
+
originRequest.on('close', () => {
|
|
213
|
+
proxyRequest.end();
|
|
214
|
+
});
|
|
215
|
+
originRequest.on('timeout', () => {
|
|
216
|
+
proxyRequest.end();
|
|
217
|
+
originRequest.destroy();
|
|
218
|
+
});
|
|
219
|
+
proxyRequest.on('error', () => {
|
|
220
|
+
endOriginReqRes();
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
);
|
|
224
|
+
originResponse.statusCode = proxyResponse.statusCode;
|
|
225
|
+
console.log(proxyResponse.statusCode);
|
|
226
|
+
for (const defaultHeader of Object.keys(this.defaultHeaders)) {
|
|
227
|
+
originResponse.setHeader(defaultHeader, this.defaultHeaders[defaultHeader]);
|
|
221
228
|
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
229
|
+
for (const header of Object.keys(proxyResponse.headers)) {
|
|
230
|
+
originResponse.setHeader(header, proxyResponse.headers[header]);
|
|
231
|
+
}
|
|
232
|
+
proxyResponse.on('data', (data) => {
|
|
233
|
+
originResponse.write(data);
|
|
234
|
+
});
|
|
235
|
+
proxyResponse.on('end', () => {
|
|
236
|
+
originResponse.end();
|
|
237
|
+
});
|
|
238
|
+
proxyResponse.on('error', () => {
|
|
239
|
+
originResponse.destroy();
|
|
240
|
+
});
|
|
241
|
+
proxyResponse.on('close', () => {
|
|
242
|
+
originResponse.end();
|
|
243
|
+
});
|
|
244
|
+
proxyResponse.on('timeout', () => {
|
|
245
|
+
originResponse.end();
|
|
246
|
+
originResponse.destroy();
|
|
247
|
+
});
|
|
248
|
+
} catch (error) {
|
|
249
|
+
console.error('Error while processing request:', error);
|
|
250
|
+
endOriginReqRes(502, 'Bad Gateway: Error processing the request');
|
|
230
251
|
}
|
|
231
|
-
proxyResponse.on('data', (data) => {
|
|
232
|
-
originResponse.write(data);
|
|
233
|
-
});
|
|
234
|
-
proxyResponse.on('end', () => {
|
|
235
|
-
originResponse.end();
|
|
236
|
-
});
|
|
237
|
-
proxyResponse.on('error', () => {
|
|
238
|
-
originResponse.destroy();
|
|
239
|
-
});
|
|
240
|
-
proxyResponse.on('close', () => {
|
|
241
|
-
originResponse.end();
|
|
242
|
-
});
|
|
243
|
-
proxyResponse.on('timeout', () => {
|
|
244
|
-
originResponse.end();
|
|
245
|
-
originResponse.destroy();
|
|
246
|
-
});
|
|
247
252
|
}
|
|
248
253
|
);
|
|
249
254
|
|
|
@@ -277,30 +282,44 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g=
|
|
|
277
282
|
}
|
|
278
283
|
|
|
279
284
|
wsIncoming.on('message', async (message, isBinary) => {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
285
|
+
try {
|
|
286
|
+
await outGoingDeferred.promise;
|
|
287
|
+
wsOutgoing.send(message, { binary: isBinary });
|
|
288
|
+
} catch (error) {
|
|
289
|
+
console.error('Error sending message to wsOutgoing:', error);
|
|
290
|
+
}
|
|
283
291
|
});
|
|
284
292
|
|
|
285
293
|
wsOutgoing.on('message', async (message, isBinary) => {
|
|
286
|
-
|
|
287
|
-
|
|
294
|
+
try {
|
|
295
|
+
wsIncoming.send(message, { binary: isBinary });
|
|
296
|
+
} catch (error) {
|
|
297
|
+
console.error('Error sending message to wsIncoming:', error);
|
|
298
|
+
}
|
|
288
299
|
});
|
|
300
|
+
|
|
289
301
|
const terminateWsOutgoing = () => {
|
|
290
|
-
wsOutgoing
|
|
291
|
-
|
|
302
|
+
if (wsOutgoing) {
|
|
303
|
+
wsOutgoing.terminate();
|
|
304
|
+
console.log('terminated outgoing ws.');
|
|
305
|
+
}
|
|
292
306
|
};
|
|
293
307
|
wsIncoming.on('error', () => terminateWsOutgoing());
|
|
294
308
|
wsIncoming.on('close', () => terminateWsOutgoing());
|
|
295
309
|
|
|
296
310
|
const terminateWsIncoming = () => {
|
|
297
|
-
wsIncoming
|
|
298
|
-
|
|
311
|
+
if (wsIncoming) {
|
|
312
|
+
wsIncoming.terminate();
|
|
313
|
+
console.log('terminated incoming ws.');
|
|
314
|
+
}
|
|
299
315
|
};
|
|
300
316
|
wsOutgoing.on('error', () => terminateWsIncoming());
|
|
301
317
|
wsOutgoing.on('close', () => terminateWsIncoming());
|
|
318
|
+
|
|
319
|
+
|
|
302
320
|
}
|
|
303
321
|
);
|
|
322
|
+
|
|
304
323
|
this.httpsServer.keepAliveTimeout = 600 * 1000;
|
|
305
324
|
this.httpsServer.headersTimeout = 600 * 1000;
|
|
306
325
|
|
|
@@ -360,7 +379,6 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g=
|
|
|
360
379
|
cert: hostCandidate.publicKey,
|
|
361
380
|
key: hostCandidate.privateKey,
|
|
362
381
|
});
|
|
363
|
-
this.httpsServer;
|
|
364
382
|
}
|
|
365
383
|
}
|
|
366
384
|
|
|
@@ -379,5 +397,6 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g=
|
|
|
379
397
|
socket.destroy();
|
|
380
398
|
});
|
|
381
399
|
await done.promise;
|
|
400
|
+
console.log('NetworkProxy -> OK: Server has been stopped and all connections closed.');
|
|
382
401
|
}
|
|
383
|
-
}
|
|
402
|
+
}
|