pub type WsHandler = Arc<dyn Fn(WebSocketRoute) -> WsHandlerFuture + Send + Sync>;Expand description
Handler invoked when a WebSocket matches a registered route. Receives
the live WebSocketRoute. Async so the driver can await the
handler’s setup before deciding whether to connect upstream or open a
fully-mocked socket (mirrors Playwright awaiting the route handler).
Aliased Type§
pub struct WsHandler { /* private fields */ }