use jsonrpc_ws_server::jsonrpc_core::*; use jsonrpc_ws_server::ServerBuilder; fn main() { let mut io = IoHandler::default(); io.add_sync_method("say_hello", |_params| { println!("Processing"); Ok(Value::String("hello".to_owned())) }); let server = ServerBuilder::new(io) .start(&"0.0.0.0:3030".parse().unwrap()) .expect("Server must start with no issues"); server.wait().unwrap() }