Expose raw Soketto interface via ws_client for more control where needed (eg in tests)

This commit is contained in:
James Wilson
2021-07-26 11:31:40 +01:00
parent cf0e424803
commit e043de8ddb
8 changed files with 354 additions and 282 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ pub async fn connect_multiple_to_uri(
// (Side note: on Ubuntu the concurrency seemed to be no issue up to at least 10k connections).
let mut sockets = vec![];
for _ in 0..num_connections {
sockets.push(ws_client::connect(uri).await?);
sockets.push(ws_client::connect(uri).await?.into_channels());
}
Ok(sockets)
}