Expand description
The socket.io packet codec (socket.io-parser 4.2 rules), without I/O.
data always holds the JSON payload exactly as it goes over the wire. For BINARY_EVENT and
BINARY_ACK that JSON contains {"_placeholder":true,"num":n} objects that refer to
attachments[n] (socket.io-parser deconstructPacket / reconstructPacket).
Structs§
- Packet
- A packet which gets sent or received during in the
socket.ioprotocol.
Enums§
- Packet
Id - An enumeration of the different
Packettypes in thesocket.ioprotocol.
Constants§
- MAX_
ATTACHMENTS - socket.io-parser
DecoderdefaultmaxAttachments. - RESERVED_
EVENTS - Event names the socket.io client and server reserve (socket.io-parser
RESERVED_EVENTS).
Functions§
- is_
reserved_ event - Whether socket.io reserves
name(it cannot be emitted or received as an event). - placeholder
- The placeholder for
attachments[num].