Dynamically update Firebase connection state.