public final class PacketEncoder extends Object
[message type] ':' [message id ('+')] ':' [message endpoint] (':' [message
data])
The message type is a single digit integer.
The message id is an incremental integer, required for ACKs (can be
ommitted). If the message id is followed by a +, the ACK is not handled by
socket.io, but by the user instead.
Socket.IO has built-in support for multiple channels of communication (which
we call "multiple sockets"). Each socket is identified by an endpoint (can be
omitted).public static io.netty.buffer.ByteBuf encodePacket(Packet packet) throws IOException
IOExceptionCopyright © 2012–2016. All rights reserved.