socket-function 1.1.13 → 1.1.15
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/SocketFunction.ts +1 -1
- package/package.json +1 -1
- package/src/webSocketServer.ts +2 -1
package/SocketFunction.ts
CHANGED
|
@@ -16,7 +16,7 @@ import "./SetProcessVariables";
|
|
|
16
16
|
import cborx from "cbor-x";
|
|
17
17
|
import { setFlag } from "./require/compileFlags";
|
|
18
18
|
import { isNode } from "./src/misc";
|
|
19
|
-
import { getPendingCallCount, harvestCallTimes, harvestFailedCallCount } from "./src/CallFactory";
|
|
19
|
+
import { getPendingCallCount, harvestCallTimes, harvestFailedCallCount, registerOwnReconnectionUrl } from "./src/CallFactory";
|
|
20
20
|
import { measureWrap } from "./src/profiling/measure";
|
|
21
21
|
|
|
22
22
|
setFlag(require, "cbor-x", "allowclient", true);
|
package/package.json
CHANGED
package/src/webSocketServer.ts
CHANGED
|
@@ -5,7 +5,7 @@ import tls from "tls";
|
|
|
5
5
|
import { getNodeIdsFromRequest, httpCallHandler } from "./callHTTPHandler";
|
|
6
6
|
import { SocketFunction } from "../SocketFunction";
|
|
7
7
|
import { getTrustedCertificates, watchTrustedCertificates } from "./certStore";
|
|
8
|
-
import { createCallFactory } from "./CallFactory";
|
|
8
|
+
import { createCallFactory, registerOwnReconnectionUrl } from "./CallFactory";
|
|
9
9
|
import { parseSNIExtension, parseTLSHello, SNIType } from "./tlsParsing";
|
|
10
10
|
import debugbreak from "debugbreak";
|
|
11
11
|
import { getNodeId } from "./nodeCache";
|
|
@@ -351,6 +351,7 @@ export async function startSocketServer(
|
|
|
351
351
|
|
|
352
352
|
let nodeId = getNodeId(getCommonName(config.cert), port);
|
|
353
353
|
console.log(green(`Started Listening on ${nodeId} (${host}) after ${formatTime(process.uptime() * 1000)}`));
|
|
354
|
+
registerOwnReconnectionUrl(nodeId);
|
|
354
355
|
|
|
355
356
|
return nodeId;
|
|
356
357
|
}
|