decodeSocketIO

Decodes the given textFrame as a single EngineIOPacket.

If this packet is a EngineIOPacket.Message packet, the payload text is deserialized as a SocketIOPacket.

This is meant to be used in web socket mode, where each web socket frame contains a single Engine.IO packet. When using HTTP long-polling with batched packets, use decodeHttpBatch instead.

Throws

if the given textFrame is not a valid Engine.IO packet

if the given textFrame does not contain a valid Socket.IO packet