Defaults

object Defaults

Properties

Link copied to clipboard
val decode: DecodeClosure

Default JSON decoder, backed by kotlinx.serialization, that takes JSON and converts it into a Message object.

Link copied to clipboard
val encode: EncodeClosure

Default JSON encoder, backed by kotlinx.serialization, that takes a Payload /* JsonObject */ and converts it into a JSON String.

Link copied to clipboard
const val HEARTBEAT: Long

Default heartbeat interval of 30s

Link copied to clipboard
val reconnectSteppedBackOff: (Int) -> Long

Default reconnect algorithm for the socket

Link copied to clipboard
val rejoinSteppedBackOff: (Int) -> Long

Default rejoin algorithm for individual channels

Link copied to clipboard
const val TIMEOUT: Long

Default timeout of 10s

Link copied to clipboard
const val VSN: String

Default JSON Serializer Version set to 2.0.0