connect_peer

Function connect_peer 

Source
pub async fn connect_peer(
    url: &str,
    actor_id: String,
    repo_id: String,
    sync: SyncManager,
    oplog: Arc<OperationLog>,
) -> Result<JoinHandle<()>>
Expand description

Connect to a remote WebSocket peer and bridge operations between the in-process SyncManager and the remote. Returns a JoinHandle for the background task managing the connection.