Check board online Status

I am developing a home automation system with my own application and ESP8266, I am using firebase for board and app connection, but now I want to check the board online status, like blynk app shows online offline status just like that, If any one have idea about then please guide me.

Thank you :slight_smile: