Hi!
Everything worked fine till the moment I've started using my implementation using multiple Nest accounts (which is mapped directly to Firebase users in structure) at the same time.
new Firebase("...") constructor doesn't produce new instances but modifies the old one - changing all of the event listeners and authentication state.
That basically means that for one client program there is only one authenticated user is possible at particular point in time. I am listening to Nest Protect device state change so I need a multiple users authenticated at the same time so for every of them I will receive a corresponding event.
I've tried giving
Firebase constructor a different URL for each user - I've read somewhere that will produce a different object for different URL but that is not true
I am aware that this could be implemented using plain HTTP REST calls but that solution is not fast enough.
Is there any suggestions how multiple client connections for single Firebase client could be implemented using JVM library?
I understand that that Firebase is originally not supposed to be used like this but it would be nice if I could implement it as I've described.
Regards,