firebase observeEventType for data change from children for which user may not have access to all children

255 views Asked by At

I'm trying to write chat functionality using firebase. the data structure would be similar to this: https://docs-examples.firebaseio.com/web/data

It's unclear to me that if I want to observer for new messages added to any of the rooms under data/messages/{room_id}, is it possible to call Firebase.observeEventType on just "data/messages" if I have security rules user can only read messages for rooms he is in. Or do I need to call observeEventType repeatedly for each data/messages/{room_id} for which he has access to.

0

There are 0 answers