@maiyunnet/kebab 9.29.2 → 9.29.3
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/doc/kebab-rag.md +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/lib/ws.js +7 -1
- package/package.json +1 -1
package/doc/kebab-rag.md
CHANGED
|
@@ -1913,7 +1913,7 @@ index/variables/VER.md
|
|
|
1913
1913
|
|
|
1914
1914
|
# Variable: VER
|
|
1915
1915
|
|
|
1916
|
-
> `const` **VER**: `"9.29.
|
|
1916
|
+
> `const` **VER**: `"9.29.3"` = `'9.29.3'`
|
|
1917
1917
|
|
|
1918
1918
|
Defined in: [index.ts:8](https://github.com/maiyunnet/kebab/blob/master/index.ts#L8)
|
|
1919
1919
|
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* --- 本文件用来定义每个目录实体地址的常量 ---
|
|
5
5
|
*/
|
|
6
6
|
/** --- 当前系统版本号 --- */
|
|
7
|
-
export const VER = '9.29.
|
|
7
|
+
export const VER = '9.29.3';
|
|
8
8
|
// --- 服务端用的路径 ---
|
|
9
9
|
const imu = decodeURIComponent(import.meta.url).replace('file://', '').replace(/^\/(\w:)/, '$1');
|
|
10
10
|
/** --- /xxx/xxx --- */
|
package/lib/ws.js
CHANGED
|
@@ -844,6 +844,11 @@ export async function rsocket(ctr, host, port) {
|
|
|
844
844
|
const ws = ctr.getPrototype('_socket');
|
|
845
845
|
/** --- 对端真实 tcp socket --- */
|
|
846
846
|
const socket = new net.Socket();
|
|
847
|
+
ws.on('error', (error) => {
|
|
848
|
+
lCore.log(ctr, `[WS][RSOCKET][SOURCE ERROR] ${host}:${port}: ${lText.stringifyError(error)}`, '-error');
|
|
849
|
+
}).on('timeout', () => {
|
|
850
|
+
lCore.log(ctr, `[WS][RSOCKET][SOURCE TIMEOUT] ${host}:${port}`, '-error');
|
|
851
|
+
});
|
|
847
852
|
socket.connect(port, host, () => {
|
|
848
853
|
socket.setKeepAlive(true);
|
|
849
854
|
// --- 连接成功 ---
|
|
@@ -882,7 +887,8 @@ export async function rsocket(ctr, host, port) {
|
|
|
882
887
|
ws.end();
|
|
883
888
|
resolve(true);
|
|
884
889
|
});
|
|
885
|
-
}).on('error', () => {
|
|
890
|
+
}).on('error', (error) => {
|
|
891
|
+
lCore.log(ctr, `[WS][RSOCKET][TARGET ERROR] ${host}:${port}: ${lText.stringifyError(error)}`, '-error');
|
|
886
892
|
resolve(false);
|
|
887
893
|
});
|
|
888
894
|
});
|