pub async fn connect(
jaconfig: JaConfig,
transport_type: TransportType
) -> JaResult<JaConnection>Expand description
Creates a new connection with janus server from the provided configs
§Example:
let mut connection = jarust::connect(
JaConfig::new("ws://localhost:8188/ws", None, "janus"),
TransportType::Ws,
)
.await
.unwrap();