You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Developing a game with the production firebase servers is not good practice, and the firebase emulator has more tools based around development (quickly generate fake google users as an example)
Describe the solution you'd like
A way to set the firebase root, auth, and store base URLs so that localhost can be used instead.
Describe alternatives you've considered
There is no alternative
I needed this feature for a project I am currently working on so I went and implemented it in my own fork of the project. While actually connecting to the emulators was easy enough, I discovered an issue in the Firebase emulators themselves that prevents SSE streaming from working.
When the HTTPSSEClient makes the request to the Realtime Database Emulator, it will never enter the STATUS_BODY state.
Screenshot showing underlying HTTPClient Status and the StreamPeer Connection Available Bytes.
It can be seen here that the StreamPeer does have the data, but because we never go to STATUS_BODY, we are not allowed to actually read it, so it remains in available bytes.
Similar screenshot showing successful production Realtime Database Streaming connection
This is due to the Realtime Database emulator not returning the proper Response Headers like production Realtime Database does for SSE streaming. Namely, it is missing a Connection: close header. I have made an issue in the Firebase Emulator repo detailing this.
Is your feature request related to a problem? Please describe.
Developing a game with the production firebase servers is not good practice, and the firebase emulator has more tools based around development (quickly generate fake google users as an example)
Describe the solution you'd like
A way to set the firebase root, auth, and store base URLs so that localhost can be used instead.
Describe alternatives you've considered
There is no alternative
Additional context
https://firebase.google.com/docs/emulator-suite
The text was updated successfully, but these errors were encountered: