Interface ConnectionListener


  • public interface ConnectionListener
    The listener interface for receiving communications events. Notification is sent whenever the connection status of the host session changes. The status is either true (connected) or false (disconnected). To receive notification, an object that implements this interface must register itself using the Session.addConnectionListener() method.
    • Method Detail

      • error

        void error​(ConnectionErrorEvent event)
        Invoked whenever there is an error connecting/disconnecting the session
        Parameters:
        event - containing the event information.
      • connectionStateChanged

        void connectionStateChanged​(ConnectionStateChangedEvent event)
        Invoked whenever the connection state changes.
        Parameters:
        event - containing the event information.