start_with_auth

Function start_with_auth 

Source
pub async fn start_with_auth(
    listen_addr: &str,
    router: Arc<RequestRouter>,
    ws_broadcaster: Arc<WsBroadcaster>,
    key_store: Arc<KeyStore>,
    counters: Arc<RuntimeCounters>,
) -> Result<()>
Expand description

start_with_broadcaster,但挂载 KeyStore 做 Bearer Token 鉴权 + RuntimeCounters 做限额