novastone-media / MQTT-Client-Framework

iOS, macOS, tvOS native ObjectiveC MQTT Client Framework
Other
1.84k stars 459 forks source link

Added ALPN support #597

Open whs opened 2 years ago

whs commented 2 years ago

Fixes #578

This PR added ALPN support. Notably, it is required for custom authentication support on AWS MQTT port 443.

To use ALPN, set the alpn attribute in MQTTSessionManager to an array of strings. I choose not to add this to the connectTo function to allow for backwards compatibility.

mk-openpath commented 1 year ago

+1, would love to get this merged. We need this ALPN support for our use case.