open fun upgradeToSsl(handler: Handler<Void>): NetSocket
Upgrade channel to use SSL/TLS. Be aware that for this to work SSL must be configured.
handler - the handler will be notified when it's upgraded
Return
a reference to this, so the API can be used fluently
open fun upgradeToSsl(serverName: String, handler: Handler<Void>): NetSocket
Upgrade channel to use SSL/TLS. Be aware that for this to work SSL must be configured.
handler - the handler will be notified when it's upgraded
Return
a reference to this, so the API can be used fluently