decode

fun decode(encodedData: String): SocketIOPacket(source)

Decodes the given encodedData into a SocketIOPacket.

Binary packet types are not supported. Binary attachments are passed in subsequent web socket frames (1 frame per attachment), and thus cannot be handled in this single-frame decoding function.