jsonrpc_client_transports::transports::ws

Function connect

Source
pub fn connect<T>(url: &Url) -> impl Future<Output = Result<T, RpcError>>
where T: From<RpcChannel>,
Expand description

Connect to a JSON-RPC websocket server.

Uses an unbounded channel to queue outgoing rpc messages.