Closed dborkan closed 9 years ago
Detect disconnect in Firebase social providers. This is using Firebase's special .info/connected endpoint, documented at https://www.firebase.com/docs/web/guide/offline-capabilities.html
Also I've changed this.baseRef to be the reference to the top-level Firebase app (e.g. https://popping-heat-4874.firebaseio.com/ for uProxy), and added this.allUsersUrl to be what baseRef_ used to represent (e.g. https://popping-heat-4874.firebaseio.com/facebook-users for uProxy with Facebook)
Fixes https://github.com/freedomjs/freedom-social-firebase/issues/10 and https://github.com/uProxy/uproxy/issues/1392
Tested in Chrome (uProxy automatically reconnects) and Firefox (reconnect not implemented but uProxy successfully detects the disconnect)
Small nit, LGTM besides, particularly like the updateMyClient bit.
:+1:
Detect disconnect in Firebase social providers. This is using Firebase's special .info/connected endpoint, documented at https://www.firebase.com/docs/web/guide/offline-capabilities.html
Also I've changed this.baseRef to be the reference to the top-level Firebase app (e.g. https://popping-heat-4874.firebaseio.com/ for uProxy), and added this.allUsersUrl to be what baseRef_ used to represent (e.g. https://popping-heat-4874.firebaseio.com/facebook-users for uProxy with Facebook)
Fixes https://github.com/freedomjs/freedom-social-firebase/issues/10 and https://github.com/uProxy/uproxy/issues/1392
Tested in Chrome (uProxy automatically reconnects) and Firefox (reconnect not implemented but uProxy successfully detects the disconnect)