public static String getApplicationProtocol(SSLSocket socket) {
        return toConscrypt(socket).getApplicationProtocol();
    }
Returns the ALPN protocol agreed upon by client and server.

@param socket the socket
@return the selected protocol or {@code null} if no protocol was agreed upon.
common/src/main/java/org/conscrypt/Conscrypt.java