paritytech / jsonrpc

Rust JSON-RPC implementation
MIT License
791 stars 274 forks source link

Example for Client Support not working #652

Open code-cro opened 2 years ago

code-cro commented 2 years ago

In the example for client from where do you pull gen_client::Client?

let (client, server) = local::connect::<gen_client::Client, _, _>(io);
Aloxaf commented 2 years ago

It's generated by #[rpc]

hunjixin commented 2 years ago

@Aloxaf and i have problem in the example use extend to get delegate function in rpc implement. but if i just just need rpc client, why not get function delegate from rpc trait directly?