-
Notifications
You must be signed in to change notification settings - Fork 597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Fix issue where emulator connects to the wrong host upon reconnect #5903
base: main
Are you sure you want to change the base?
Conversation
📝 PRs merging into main branchOur main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released. |
Generated by 🚫 Danger |
Coverage Report 1Affected Products
Test Logs |
Size Report 1Affected ProductsTest Logs |
Startup Time Report 1Note: Layout is sometimes suboptimal due to limited formatting support on GitHub. Please check this report on GCS. Startup time comparison between the CI merge commit (d90430e) and the base commit (68fb692) are not available. No macrobenchmark data found for the base commit (68fb692). Analysis for the CI merge commit (d90430e) can be found at: |
When the handshake with the WebSocket is complete, the server responds with the host name and port, which we then use upon reconnection.
When using the firebase emulator, the server defaults to the host and port mentioned in the
firebase.json
, but if the user is using a different host name to connect to the firebase emulator (such as 10.0.2.2 when the Android Emulator talks to the host machine's server), we end up caching the host name infirebase.json
and end up reconnecting to the wrong host name and port.This PR attempts to introduce state called
isUsingEmulator
to prevent caching of the hostname, and therefore connecting to the default host name provided by the user's config.Fixes #5870