Function jsonrpc_client_transports::transports::ws::try_connect [−][src]
pub fn try_connect<T>(
url: &str
) -> Result<impl Future<Item = T, Error = RpcError>, Error> where
T: From<RpcChannel>,
Connect to a JSON-RPC websocket server.
Uses an unbuffered channel to queue outgoing rpc messages.
Returns Err
if the url
is invalid.