Function handle_jsonrpc_ws

Source
pub async fn handle_jsonrpc_ws<T: Metadata + From<Session>>(
    __arg0: Extension<Arc<MetaIoHandler<T>>>,
    __arg1: Extension<StreamServerConfig>,
    ws: WebSocketUpgrade,
) -> impl IntoResponse
Available on crate feature axum only.
Expand description

Axum handler for JSONRPC over WebSocket.

This supports regular jsonrpc calls and notifications, as well as pub/sub with crate::pub_sub.