feat(sql_connect): update websocket URL for GSLB soft stickiness - #18531
feat(sql_connect): update websocket URL for GSLB soft stickiness#18531dconeybe wants to merge 3 commits into
Conversation
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. |
…art:64:80 - String literals shouldn't be concatenated by the '+' operator. Try removing the operator to use adjacent strings. - prefer_adjacent_string_concatenation
Updates the WebSocket connection URL path for Cloud Data Connect to include the project ID and service ID, aligning with backend changes for GSLB soft stickiness. Also updates the unit tests to verify the URL format using a local HTTP server.
Highlights
WebSocketTransportto includeprojectIdandserviceIdin the WebSocket URL path, changing the format to/ws/google.firebase.dataconnect.v1.ConnectorStreamService.Connect/$projectId/locations/$location/services/$serviceId.websocket_transport_test.dartto use a localHttpServerto intercept and validate the connection path, replacing the previous static host configuration.Changelog
projectIdandserviceIdto the WebSocket connection URL path.HttpServerin setup to receive test connection requests.WebSocketTransport URL Validationtest group to assert that the transport connects using the correct URL path.addTearDowninsetUp.