Skip to main content

create_collaborative_clients

Function create_collaborative_clients 

Source
pub fn create_collaborative_clients(
    user_names: &[&str],
) -> Vec<Client<MemoryTransport>>
Expand description

Create a fully connected in-memory set of collaborative clients.

The returned clients can immediately open the same session/document IDs and exchange updates in examples or tests.

ยงPanics

Panics if user_names and generated transports differ in length, which should not happen for a correctly constructed in-memory network.