Post syncing logic is wokting. As expected datachannels fail to send posts above a certain size. Need to implement chunking next.

This commit is contained in:
2025-05-19 01:21:32 -07:00
parent cedc1d7b36
commit 338266a3c6
4 changed files with 115 additions and 15 deletions

View File

@@ -532,6 +532,10 @@ class PeerConnection {
this.dataChannelSuperlog && console.log.apply(null, log(`datachannel from peer ${this.remotePeerID} closed, disconnecting peer.`));
this.peerManager.disconnectFromPeer(this.remotePeerID);
}
this.dataChannel.onerror = (e:RTCErrorEvent) => {
this.dataChannelSuperlog && console.log.apply(null, log(`datachannel from peer ${this.remotePeerID} error:`, e.error));
}
}
async connect() {