TlsStream.session

TlsSession session() @property

Returns

The current session for potential resumption.

Only valid after handshake completes. Not const because a const method cannot hand out the stored mutable session without casts.