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
+2 -1
View File
@@ -41,7 +41,8 @@ where
// to/from the core. If the external channels break, we end for good. If the internal
// channels break, we loop around and try connecting again.
match ws_client::connect(&telemetry_uri).await {
Ok((tx_to_core, mut rx_from_core)) => {
Ok(connection) => {
let (tx_to_core, mut rx_from_core) = connection.into_channels();
is_connected = true;
let mut tx_out = tx_out.clone();