Is ALPN protocol supported in HiveMQTT?

I want to use ALPN protocol. But when I connect via passing this protocol name “x-amzn-mqtt-ca”, then mqtt does not connect and return this error

com.hivemq.client.mqtt.exceptions.ConnectionFailedException: java.lang.IllegalArgumentException: protocol x-amzn-mqtt-ca is not supported.

Hi @ranaaamer ,

Nice to see you back on your community forum!
ALPN is not supported with the HiveMQ MQTT client or broker.
The application layer protocol is always MQTT.
I’m curious: What is your use case of trying to use ALPN?


Because on some network, 8883 port blocked. So I want to 443 port. Can you tell me how we can use MQTT over WebSocket using header and token?