Struct rump::client::Client [] [src]

pub struct Client {
    // some fields omitted
}

A Client defines methods and options for building a Session with a WAMP Router

Examples

To obtain a Session from a client with default settings perform the following:

let session = Client::new("ws://router_address:port/ws", "realm_name").connect().unwrap();

Methods

impl Client

fn new(url: &str, realm: &str) -> Self

fn connect(&self) -> WampResult<Session<WebSocket>>