sok / Sok.Socket.TCP / TCPClientSocket / setOption
fun <T> setOption(option: SocketOption<T>): Boolean (source)
Platform and version requirements: Common
set a socket option exemple:
client.setOption(SocketOption(Options.SO_KEEPALIVE,true))
option - option to set
Return success of the operation
actual fun <T> setOption(option: <ERROR CLASS><T>): Boolean (source)
Platform and version requirements: JVM, JS, Native
set a socket option
option - option to set
Return success of the operation