pub async fn subscribe_stats(
    url: &str
) -> Result<impl TryStream<Ok = BlockStats, Error = Error> + Unpin, Error>
Expand description

Connect to the specified node and listen for new blocks.

The url needs to be a websocket so that we can subscribe to new blocks.