pub fn generate_request(request: Request) -> Result<(Vec<u8>, String)>
Verifies and generates a client WebSocket request from the original request and extracts a WebSocket key from it.