Started with command parsing
This commit is contained in:
@@ -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?;
|
||||
|
||||
Reference in New Issue
Block a user