Reproduction steps:
- clone the repo
- cd functions
- npm install
- npm run serve
- hit the function endpoint http://localhost:5099/fbdb-test-001/us-central1/helloWorld
You should see the following error appear in your console
@firebase/database: FIREBASE WARNING: wss:// URL used, but browser isn't known to support websockets. Trying anyway.
And if you wait long enough (1 min should be default) you will see the function timeout
- add "@firebase/database-compat": "0.1.2" the dependency node in functions/package.json
- run
npm i - Go back to step 4
You should now see the execution without errors