Add deno-only bootstrap peer implementation. Uses libdatachannel for the RTCDatachannel implementation.

Fix Typescript sourcemap serving
PeerManager: more robust when RTCPeerConnection fails or is not present
Separate source maps so the main files arent bloated
This commit is contained in:
2025-06-10 20:23:19 -07:00
parent a96d7e28c8
commit d0fd041f7e
27 changed files with 132 additions and 149 deletions

View File

@@ -199,8 +199,8 @@ export class App {
return;
}
let knownUsers = await this.sync.getKnownUsers();
this.peerManager.rpc.announceUsers(event.peerID, this.peerID, knownUsers);
// rpc saying what peers we have
this.peerManager.rpc.announceUsers(event.peerID, this.peerID, knownUsers);
});
this.peerManager.addEventListener(PeerEventTypes.PEER_DISCONNECTED, async (event) => {
console.log.apply(null, log(`[app]: peer disconnected:${event.peerID}`));
@@ -1183,3 +1183,4 @@ export class App {
})(Route = App.Route || (App.Route = {}));
})(App || (App = {}));
;
//# sourceMappingURL=App.js.map