22x - Alert user when session comes offline

Is it possible to capture offline status in current session ?
At project opening, is it possible to display the offline status in a popup?

Is it possible while switching from online to offline to display the change status ?