Skip to main content

create_community

Function create_community 

Source
pub async fn create_community<T: Transport + ?Sized>(
    transport: &T,
    name: &str,
    default_channel_name: &str,
    relays: Vec<String>,
) -> Result<Community, String>
Expand description

Create a brand-new Community end-to-end: mint keys + the default channel, persist it locally, and publish its GroupRoot + ChannelMetadata to the Community’s relays. Returns the created Community. (The caller then runs the subscription refresh so it starts receiving.)