Started with command parsing

This commit is contained in:
Dave Hrycyszyn
2024-05-29 13:17:16 +01:00
parent d57542b024
commit 8e290f8bef
2 changed files with 42 additions and 0 deletions

View File

@@ -1,7 +1,11 @@
use cli::parse_args;
use websockets::{WebSocket, WebSocketError};
pub(crate) mod cli;
#[tokio::main]
async fn main() -> Result<(), WebSocketError> {
parse_args();
let mut ws = WebSocket::connect("ws://localhost:8080/").await?;
ws.send_text("foo".to_string()).await?;