Finished the argument parsing in the main function.

This commit is contained in:
Sebastian Moser
2022-08-02 23:50:13 +02:00
parent 69ad8ec683
commit aac4700243
4 changed files with 497 additions and 12 deletions

View File

@@ -1,4 +1,18 @@
pub fn start_server(){
println!("HI");
use ws::listen;
pub fn run_server(args: Vec<String>){
println!("running server!");
}
fn ws() {
//A WebSocket echo server
listen("127.0.0.1:3003", |out| {
move |msg| {
println!("recieved: {}", msg);
out.send(format!("You sent me: {}", msg))
}
}).unwrap();
}