-
public class ProtocolMessageA 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumProtocolMessage.Actionpublic enumProtocolMessage.Flagpublic classProtocolMessage.ActionSerializerpublic classProtocolMessage.AuthDetailsContains the token string used to authenticate a client with Ably.
-
Field Summary
Fields Modifier and Type Field Description public ProtocolMessage.Actionactionpublic intflagspublic intcountpublic ErrorInfoerrorpublic Stringidpublic Stringchannelpublic StringchannelSerialpublic StringconnectionIdpublic LongmsgSerialpublic longtimestamppublic Array<Message>messagespublic Array<PresenceMessage>presencepublic ConnectionDetailsconnectionDetailspublic ProtocolMessage.AuthDetailsauthpublic Map<String, String>paramspublic Array<Annotation>annotationspublic Array<Object>state
-
Constructor Summary
Constructors Constructor Description ProtocolMessage()ProtocolMessage(ProtocolMessage.Action action)ProtocolMessage(ProtocolMessage.Action action, String channel)
-
Method Summary
Modifier and Type Method Description voidsetFlags(int flags)static booleanackRequired(ProtocolMessage msg)(RTN7a) booleanhasFlag(ProtocolMessage.Flag flag)voidsetFlag(ProtocolMessage.Flag flag)-
-
Constructor Detail
-
ProtocolMessage
ProtocolMessage()
-
ProtocolMessage
ProtocolMessage(ProtocolMessage.Action action)
-
ProtocolMessage
ProtocolMessage(ProtocolMessage.Action action, String channel)
-
-
Method Detail
-
setFlags
void setFlags(int flags)
-
ackRequired
static boolean ackRequired(ProtocolMessage msg)
(RTN7a)
-
hasFlag
boolean hasFlag(ProtocolMessage.Flag flag)
-
setFlag
void setFlag(ProtocolMessage.Flag flag)
-
-
-
-