Defaults

object Defaults

Properties

decode
Link copied to clipboard
val decode: DecodeClosure
Default JSON decoder, backed by GSON, that takes JSON and converts it into a Message object.
encode
Link copied to clipboard
val encode: EncodeClosure
Default JSON encoder, backed by GSON, that takes a Map<String, Any> and converts it into a JSON String.
gson
Link copied to clipboard
val gson: Gson
The default Gson configuration to use when parsing messages
HEARTBEAT
Link copied to clipboard
const val HEARTBEAT: Long = 30_000
Default heartbeat interval of 30s
reconnectSteppedBackOff
Link copied to clipboard
val reconnectSteppedBackOff: (Int) -> Long
Default reconnect algorithm for the socket
rejoinSteppedBackOff
Link copied to clipboard
val rejoinSteppedBackOff: (Int) -> Long
Default rejoin algorithm for individual channels
TIMEOUT
Link copied to clipboard
const val TIMEOUT: Long = 10_000
Default timeout of 10s
VSN
Link copied to clipboard
const val VSN: String
Default JSON Serializer Version set to 2.0.