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