Function sc_rpc_server::start_ws

source ·
pub async fn start_ws<M: Send + Sync + 'static>(
    addrs: [SocketAddr; 2],
    cors: Option<&Vec<String>>,
    ws_config: WsConfig,
    metrics: Option<RpcMetrics>,
    rpc_api: RpcModule<M>,
    rt: Handle,
    id_provider: Option<Box<dyn IdProvider>>
) -> Result<WsServerHandle, Box<dyn StdError + Send + Sync>>
Expand description

Start WS server listening on given address.