Periodic websocket sends are now working

This commit is contained in:
Dave Hrycyszyn
2024-05-29 17:29:20 +01:00
parent f6b5825cea
commit fff4bfe9ee
5 changed files with 1340 additions and 16 deletions

View File

@@ -1,3 +1,4 @@
use bft_json_crdt::keypair::make_keypair;
use cli::{parse_args, Commands};
pub(crate) mod cli;
@@ -13,7 +14,8 @@ async fn main() {
init::init();
}
Some(Commands::Run {}) => {
websocket::start().await.unwrap();
let keys = make_keypair();
websocket::start(keys).await.unwrap();
}
None => println!("No command provided. Exiting. See --help for more information."),
}