public final class ServerParser extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
PROTOCOL |
| Modifier and Type | Method and Description |
|---|---|
static io.socket.engineio.parser.Packet |
decodePacket(Object data)
Decode a packet received from transport.
|
static void |
decodePayload(Object data,
io.socket.engineio.parser.Parser.DecodePayloadCallback callback)
Decode payload received from transport.
|
static void |
encodePacket(io.socket.engineio.parser.Packet packet,
boolean supportsBinary,
io.socket.engineio.parser.Parser.EncodeCallback callback)
Encode a packet for transfer over transport.
|
static void |
encodePayload(List<io.socket.engineio.parser.Packet<?>> packets,
io.socket.engineio.parser.Parser.EncodeCallback callback)
Encode an array of packets into a payload for transfer over transport.
|
public static final int PROTOCOL
public static void encodePacket(io.socket.engineio.parser.Packet packet,
boolean supportsBinary,
io.socket.engineio.parser.Parser.EncodeCallback callback)
packet - The packet to encode.supportsBinary - Whether the transport supports binary encoding.callback - The callback to be called with the encoded data.public static void encodePayload(List<io.socket.engineio.parser.Packet<?>> packets, io.socket.engineio.parser.Parser.EncodeCallback callback)
packets - Array of packets to encode.callback - The callback to be called with the encoded data.public static io.socket.engineio.parser.Packet decodePacket(Object data)
data - Data received from transport.public static void decodePayload(Object data, io.socket.engineio.parser.Parser.DecodePayloadCallback callback)
data - Data received from transport.callback - The callback to be called with each decoded packet in payload.Copyright © 2021. All rights reserved.