Settings
Help

http_ws_router

Function http_ws_router 

Source
pub fn http_ws_router<Http, Ws>(
    config: ServerConfig,
    http: Http,
    ws: Ws,
) -> Router
where Http: RpcHandler, Ws: PubSubRpcHandler,
Expand description

Configures an [axum::Router] that handles JSON-RPC calls via both HTTP and WS.