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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user