You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use jsonrpc_tcp_server::ServerBuilder;use jsonrpc_core::*;fntcp_server(){letmut io = IoHandler::default();
io.add_sync_method("say_hello", |_params| {Ok(Value::String("hello".to_string()))});let server = ServerBuilder::new(io).start(&"0.0.0.0:3030".parse().unwrap()).expect("Server must start with no issues.");
server.wait();}
The server.wait() didn't blocked , json_tcp_server version is 18.0.0