public class ProtocolSerializer
extends java.lang.Object
| Constructor and Description |
|---|
ProtocolSerializer() |
| Modifier and Type | Method and Description |
|---|---|
static ProtocolMessage |
fromJSON(java.lang.String packed)
JSON decode
|
static ProtocolMessage |
readMsgpack(byte[] packed)
Msgpack decode
|
static byte[] |
writeJSON(ProtocolMessage message)
JSON encode
|
static byte[] |
writeMsgpack(ProtocolMessage message)
Msgpack encode
|
public static ProtocolMessage readMsgpack(byte[] packed) throws AblyException
AblyExceptionpublic static byte[] writeMsgpack(ProtocolMessage message)
public static ProtocolMessage fromJSON(java.lang.String packed) throws AblyException
AblyExceptionpublic static byte[] writeJSON(ProtocolMessage message) throws AblyException
AblyException