class Options
Socket options.
Build the object with default constructor Options()
and
customize it afterward.
For interval function, look at ExTimer.timerCalc.
Note: The logger callback might be called on other thread.
<init> |
Socket options. Options() |
heartbeatIntervalMs |
Heartbeat interval in miliseconds var heartbeatIntervalMs: Long |
logger |
Logger function (must be thread safe) var logger: ((String, String) -> Unit)? |
params |
A list of key/value sent with the conection. var params: HashMap<String, Any>? |
reconnectAfterMs |
Reconnect interval functions (must be thread safe) var reconnectAfterMs: (Int) -> Int |
rejoinAfterMs |
Rejoin interval functions (must be thread safe) var rejoinAfterMs: (Int) -> Int |
timeout |
Timeout in miliseconds var timeout: Int |