Function connect

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

Connect to a JSON-RPC websocket server.

Uses an unbuffered channel to queue outgoing rpc messages.