EngineIO

The Engine.IO decoder, following the Engine.IO protocol.

Functions

Link copied to clipboard
fun <T> decodeBatch(batch: String, deserializePayload: (String) -> T): List<EngineIOPacket<T>>

Decodes the given batch text as a batch of EngineIOPackets.

Link copied to clipboard

Decodes the given binary frame bytes as a single EngineIOPacket.Message. As specified by the protocol, binary messages are just sent as-is, so there is no real decoding involved in this function, it just wraps the bytes in a packet type for consistency.

Link copied to clipboard
fun <T> decodeFrame(text: String, deserializePayload: (String) -> T): EngineIOPacket<T>

Decodes the given text frame as a single EngineIOPacket.

Link copied to clipboard

Decodes the given text frame as a single EngineIOPacket.