Josep Sayol Josep Sayol - 4 years ago 127
Javascript Question

Finding out paths being watched on the Firebase database with the Web SDK

Using the Web SDK, is it possible to get a list of the database paths currently being watched and the events they're watching for?

Let's say I have the following code:

firebase.database().ref('/users/joe/email').on('value', ...);

firebase.database().ref('/usersPosts/joe').on('child_added', ...);


Is there a way to ask the SDK to tell me that it's listening for 'value' events on
/users/joe/email
and 'child_added' events on
/usersPosts/joe
?

Thanks!

Answer Source

firebaser here

There is no public API to get a list of the paths that have an active listener.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download