SSLSocket.SSLConnected

From Xojo Documentation

Read-Only Property (As Boolean )
BooleanValue = aSSLSocket.SSLConnected

Supported for all project types and targets.

True if you have an SSL connection.

Sample Code

If Me.SSLConnected Then
// connection established with secure communications, proceed ...
Else
Exit
End If