Function realtimeProtocol

Source
realtimeProtocol(): Protocol<UpdateItem | AwarenessItem>

A protocol with a realtime accelerator channel.

The webxdc update channel sends the whole document state. The realtime channel sends incremental updates as well as awareness information.

If a peer sends out an update over realtime and disconnects before its webxdc update is sent, that edit exists only in peers that received the realtime update. If another peer that did receive the realtime update makes an edit that causes it to send its document to the webxdc update log, other peers can catch up.