public class EIOParser extends Object
| Constructor and Description |
|---|
EIOParser() |
| Modifier and Type | Method and Description |
|---|---|
static EIOPacket |
decode(String msg)
解析 engine.io 报文
|
static String |
encode(EIOPacket packet)
编码 Packet 成 字符串
|
static boolean |
isEngineIOMessage(String msg)
判断是否是 socket.io 的消息
|
static void |
main(String[] args) |
public static boolean isEngineIOMessage(String msg)
msg - 消息public static EIOPacket decode(String msg) throws SocketIOParserException
msg - 报文内容SocketIOParserException - 解析异常public static String encode(EIOPacket packet)
packet - SIOPacket 对象public static void main(String[] args) throws SocketIOParserException
SocketIOParserExceptionCopyright © 2020 Voovan. All rights reserved.