@rljson/network 0.0.2 → 0.0.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/dist/network.js +4 -0
- package/package.json +1 -1
package/dist/network.js
CHANGED
|
@@ -1404,6 +1404,10 @@ class NetworkManager {
|
|
|
1404
1404
|
this._peerTable.on("peer-joined", (peer) => {
|
|
1405
1405
|
this._emit("peer-joined", peer);
|
|
1406
1406
|
this._probeScheduler.setPeers(this._peerTable.getPeers());
|
|
1407
|
+
const broadcastPeers = this._broadcastLayer.getPeers();
|
|
1408
|
+
if (broadcastPeers.some((bp) => bp.nodeId === peer.nodeId)) {
|
|
1409
|
+
void this._probeScheduler.runOnce();
|
|
1410
|
+
}
|
|
1407
1411
|
this._recomputeTopology();
|
|
1408
1412
|
});
|
|
1409
1413
|
this._peerTable.on("peer-left", (nodeId) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rljson/network",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Networking middle layer providing basic advertising and discovery as well as cloud fall backs and basic config.",
|
|
5
5
|
"homepage": "https://github.com/rljson/network",
|
|
6
6
|
"bugs": "https://github.com/rljson/network/issues",
|