Skip to main content

ws_handler

Function ws_handler 

Source
pub async fn ws_handler(
    __arg0: State<Arc<AppState>>,
    __arg1: Path<(String, String)>,
    headers: HeaderMap,
    ws: WebSocketUpgrade,
) -> Result<impl IntoResponse, AppError>
Expand description

GET /ws/chat/{credential_id}/{chat_id} WebSocket upgrade for outbound messages