Y-webrtc; how does indirect sync work?

From the y-webrtc readme:

The clients will still sync if every client is connected at least indirectly to every other client.

However, when investigating the code, I don’t understand how updates are propagated through the network.

Let’s say the following users are connected:

  • A and B
  • B and C


  • When A makes a document update, when does B send it to C? (where is the related code, or will it be synced indirectly because the document update listener for user B fires?)
  • Similarly, will user C see the awareness info of user A?
1 Like