Class ProtocolMessage

java.lang.Object
io.ably.lib.types.ProtocolMessage

public class ProtocolMessage extends Object
A message sent and received over the Realtime protocol. A ProtocolMessage always relates to a single channel only, but can contain multiple individual Messages or PresenceMessages. ProtocolMessages are serially numbered on a connection. See the Ably client library developer documentation for further details on the members of a ProtocolMessage.
  • Field Details

    • action

      public ProtocolMessage.Action action
    • flags

      public int flags
    • count

      public int count
    • error

      public ErrorInfo error
    • id

      public String id
    • channel

      public String channel
    • channelSerial

      public String channelSerial
    • connectionId

      public String connectionId
    • msgSerial

      public Long msgSerial
    • timestamp

      public long timestamp
    • messages

      public Message[] messages
    • presence

      public PresenceMessage[] presence
    • connectionDetails

      public ConnectionDetails connectionDetails
    • auth

    • params

      public Map<String,String> params
    • annotations

      public Annotation[] annotations
    • state

      @Nullable public @Nullable Object[] state
      This will be null if we skipped decoding this property due to user not requesting Objects functionality JsonAdapter annotation supports java version (1.8) mentioned in build.gradle This is targeted and specific to the state field, so won't affect other fields
  • Constructor Details

  • Method Details