Function sc_rpc_server::start_ws[][src]

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

Start WS server listening on given address.

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