TlsStream.serverName

string serverName() @property const;

Returns

The server name (SNI) for this connection.

For clients, this is the name that was sent. For servers, this is the name received from the client.