webrtc / FirebaseRTC

Codelab for building a WebRTC Video chat application using Firebase Cloudstore.
https://webrtc.org
492 stars 343 forks source link

Does `await` really make sense in `db.collection('rooms').doc();` ? #33

Open multimanic opened 3 years ago

multimanic commented 3 years ago

https://github.com/webrtc/FirebaseRTC/blob/b1d98aa103eb63b6874d52b2023b25fba81cbd50/public/app.js#L33

According to the docs, the doc() method doesn't return a promise. So why the await in this line?