pub fn start_ws<M: PubSubMetadata + From<Sender<String>>>(
    addr: &SocketAddr,
    max_connections: Option<usize>,
    cors: Option<&Vec<String>>,
    io: RpcHandler<M>
) -> Result<Server>
Expand description

Start WS server listening on given address.

Note: Only available if not(target_os = "unknown").