@syncbridge/net 0.4.16 → 0.4.17
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.
|
@@ -66,6 +66,8 @@ let TcpClientComponent = class TcpClientComponent extends IoClientBaseComponent
|
|
|
66
66
|
this._stopping = false;
|
|
67
67
|
this.logger?.info(`TCP socket connecting to ${colors.cyan(this._client.host + ':' + this._client.port)}`);
|
|
68
68
|
this._client.connect();
|
|
69
|
+
if (!this._client.connected)
|
|
70
|
+
this.setStatus(ServiceStatus.unhealthy);
|
|
69
71
|
}
|
|
70
72
|
async _stop() {
|
|
71
73
|
this._stopping = true;
|
|
@@ -39,15 +39,6 @@ let UdpClientComponent = class UdpClientComponent extends IoClientBaseComponent
|
|
|
39
39
|
this.socket.on('message', (msg, info) => {
|
|
40
40
|
if (info.address === '127.0.0.1')
|
|
41
41
|
return;
|
|
42
|
-
// todo logger
|
|
43
|
-
// this.logger.debug(
|
|
44
|
-
// `Data received from ${colors.cyan(info.address + ':' + info.port)} (${msg.length} bytes)`,
|
|
45
|
-
// {
|
|
46
|
-
// host: info.address,
|
|
47
|
-
// port: info.port,
|
|
48
|
-
// size: msg.length,
|
|
49
|
-
// },
|
|
50
|
-
// );
|
|
51
42
|
const info2 = {
|
|
52
43
|
...info,
|
|
53
44
|
toString() {
|
package/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncbridge/net",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.17",
|
|
4
4
|
"description": "SyncBridge builtin net (socket) extensions",
|
|
5
5
|
"author": "Panates Inc",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@syncbridge/common": "^0.5.11",
|
|
31
|
-
"@syncbridge/builtins": "^0.4.
|
|
31
|
+
"@syncbridge/builtins": "^0.4.17",
|
|
32
32
|
"@sqb/builder": ">=4.19.6 <5",
|
|
33
33
|
"@sqb/connect": ">=4.19.6 <5"
|
|
34
34
|
},
|