Open

@Serializable
data class Open(val sid: String, val upgrades: List<String>, val pingInterval: Int, val pingTimeout: Int, val maxPayload: Int? = null) : EngineIOPacket<Nothing> (source)

Used during the handshake.

Constructors

Link copied to clipboard
constructor(sid: String, upgrades: List<String>, pingInterval: Int, pingTimeout: Int, maxPayload: Int? = null)

Properties

Link copied to clipboard
val maxPayload: Int? = null

Optional, only useful when using long-polling as transport to know how many packets to batch together.

Link copied to clipboard

The ping interval, used in the heartbeat mechanism (in milliseconds).

Link copied to clipboard

The ping timeout, used in the heartbeat mechanism (in milliseconds).

Link copied to clipboard
val sid: String

The session ID.

Link copied to clipboard

The list of available transport upgrades.