TlsStream.negotiatedProtocol

string negotiatedProtocol() @trusted

Get the negotiated ALPN protocol, if any.

Must be called after the handshake completes. Returns the protocol name negotiated via ALPN, or an empty string if ALPN was not used or no protocol was negotiated.

Returns

The negotiated protocol name, or empty string.