new ConnectionObserverInterface()
Interface description for the observers of the Connection singleton.
If an objects wants to be informed for a specific event (when connection is lost for example) they can register as an observer.
Registering an object as an observer for the Connection singleton is simple as calling Connection.addObserver(object).
Then, if the observer defines any of the methods described below, they will be called whenever it is appropriate.
All methods are optional. Just implement those you need in your class and add it as observer.