pub fn connect<T>(url: &Url) -> impl Future<Output = Result<T, RpcError>>where T: From<RpcChannel>,
Connect to a JSON-RPC websocket server.
Uses an unbounded channel to queue outgoing rpc messages.