Class Connection


  • public class Connection
    extends EventEmitter<ConnectionEvent,​ConnectionStateListener>
    A class representing the connection associated with an AblyRealtime instance. The Connection object exposes the lifecycle and parameters of the realtime connection.
    • Field Detail

      • state

        public ConnectionState state
        The current state of this Connection.
      • reason

        public ErrorInfo reason
        Error information associated with a connection failure.
      • key

        public java.lang.String key
        The assigned connection key.
      • recoveryKey

        public java.lang.String recoveryKey
        RTN16b) Connection#recoveryKey is an attribute composed of the connection key and latest serial received on the connection
      • id

        public java.lang.String id
        A public identifier for this connection, used to identify this member in presence events and message ids.
      • serial

        public long serial
        The serial number of the last message to be received on this connection.