Name: Anonymous 2023-01-02 19:20
I was thinking of using peerjs plus local webstorage. Is it possible?
1) offline page connects to 0.peerjs.com, gets an id to do handshakes
2) gets someone elses id (how?) and connects to it using peer.connect(id), then sets up the callbacks etc
3) after locally posting something and hitting synchronize button, it "uploads" this post to other peers by sending it to them with conn.send(data). This syncs their own local copies of the textboard which exist in local web storage (actually only the changes/diffs get sent).
4) ??? Decentralized textboard!
1) offline page connects to 0.peerjs.com, gets an id to do handshakes
2) gets someone elses id (how?) and connects to it using peer.connect(id), then sets up the callbacks etc
var conn = peer.connect(peerId)
3) after locally posting something and hitting synchronize button, it "uploads" this post to other peers by sending it to them with conn.send(data). This syncs their own local copies of the textboard which exist in local web storage (actually only the changes/diffs get sent).
4) ??? Decentralized textboard!