socket-function 1.1.17 → 1.1.18
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/package.json +1 -1
- package/src/CallFactory.ts +4 -1
package/package.json
CHANGED
package/src/CallFactory.ts
CHANGED
|
@@ -563,7 +563,7 @@ export async function createCallFactory(
|
|
|
563
563
|
let otherReconnectionUrl = callFactory.receivedInitializeState.ownReconnectionUrl;
|
|
564
564
|
callFactory.realNodeId = otherReconnectionUrl;
|
|
565
565
|
if (SocketFunction.logMessages) {
|
|
566
|
-
console.log(green(`Received initialize state from ${callFactory.realNodeId} at ${Date.now()}`));
|
|
566
|
+
console.log(green(`Received initialize state from ${callFactory.realNodeId} (for ${nodeId}) at ${Date.now()}`));
|
|
567
567
|
}
|
|
568
568
|
if (otherReconnectionUrl && !canReconnect && !!getNodeIdLocation(otherReconnectionUrl) && otherReconnectionUrl !== ownReconnectionUrl) {
|
|
569
569
|
if (changeNodeId({
|
|
@@ -571,6 +571,9 @@ export async function createCallFactory(
|
|
|
571
571
|
newNodeId: otherReconnectionUrl,
|
|
572
572
|
callFactory,
|
|
573
573
|
})) {
|
|
574
|
+
if (SocketFunction.logMessages) {
|
|
575
|
+
console.log(green(`Changed node id from ${nodeId} to ${otherReconnectionUrl}`));
|
|
576
|
+
}
|
|
574
577
|
nodeId = otherReconnectionUrl;
|
|
575
578
|
niceConnectionName = otherReconnectionUrl;
|
|
576
579
|
callerContext.nodeId = nodeId;
|