- Data that doesn't depend on the current state of a doc and is quite small e.g.
- Awarness (is the other person online)
- Mouse position on a Canvas
- Data that depends on a specific change e.g.
- Cursor position in a document
There could be a case for sending larger amounts of information only when new participants come online and then have smaller updates.
- In a trusted environment or anonymous cases you don't need more than unencrypted messages and a peerId
- In other cases you want messages do be encrypted and signed
- In secsync I implemented this and created proofs (there is probably a better solution, but this one worked)
- https://github.com/nikgraf/secsync/blob/main/verifpal_and_threat_library/secsync_clients_ephemeral.png
- https://github.com/nikgraf/secsync/blob/main/verifpal_and_threat_library/secsync_clients_ephemeral.vp