Help creating a notion of Object Server "heartbeat" in iOS app



New to Realm. Gone through the demo tutorial apps.
I have been tasked with adding an online / offline indicator to or app to show the status of the connection to our Realm Object Server.
I have looked through the forums and the web and can’t seem to find anything that shows how to do this.
I know that there is a SyncSession ‘connectionStatus’ and ‘addConnectionNotification(callback)’.
I have a local realm on my workstation and I’ve been trying to get connectionStatus to work but I only get .disconnected. I am not sure how to use addConnectionNotification(callback) of if it is appropriate for what I am trying to accomplish.

Ideally a simple code example would be helpful.