Package io.ably.lib.types
Class ProtocolSerializer
java.lang.Object
io.ably.lib.types.ProtocolSerializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProtocolMessage
JSON decodestatic ProtocolMessage
readMsgpack
(byte[] packed) Msgpack decodestatic byte[]
writeJSON
(ProtocolMessage message) JSON encodestatic byte[]
writeMsgpack
(ProtocolMessage message) Msgpack encode
-
Constructor Details
-
ProtocolSerializer
public ProtocolSerializer()
-
-
Method Details
-
readMsgpack
Msgpack decode- Throws:
AblyException
-
writeMsgpack
Msgpack encode -
fromJSON
JSON decode- Throws:
AblyException
-
writeJSON
JSON encode- Throws:
AblyException
-