Class Connection

    • Field Detail

      • reason

        public ErrorInfo reason
        An ErrorInfo object describing the last error received if a connection failure occurs.

        Spec: RTN14a

      • key

        public java.lang.String key
        A unique private connection key used to recover or resume a connection, assigned by Ably. When recovering a connection explicitly, the recoveryKey is used in the recover client options as it contains both the key and the last message serial. This private connection key can also be used by other REST clients to publish on behalf of this client. See the publishing over REST on behalf of a realtime client docs for more info.

        Spec: RTN9

      • recoveryKey

        public java.lang.String recoveryKey
        The recovery key string can be used by another client to recover this connection's state in the recover client options property. See connection state recover options for more information.

        Spec: RTN16b, RTN16c

      • id

        public java.lang.String id
        A unique public identifier for this connection, used to identify this member.

        Spec: RTN8

      • serial

        public long serial
        The serial number of the last message to be received on this connection, used automatically by the library when recovering or resuming a connection. When recovering a connection explicitly, the recoveryKey is used in the recover client options as it contains both the key and the last message serial.

        Spec: RTN10