pub async fn handle_connection(
stream: TcpStream,
peer: SocketAddr,
state: Arc<ServerState>,
) -> Result<(), Box<dyn Error>>Expand description
Convenience wrapper for the standalone car-server binary: accepts
the WebSocket handshake on a raw TcpStream then delegates to
run_dispatch. Embedders that already have a handshake-completed
WebSocketStream skip this and call run_dispatch directly.