emqx / CocoaMQTT

MQTT 5.0 client library for iOS and macOS written in Swift
https://www.emqx.com/en
Other
1.59k stars 418 forks source link

Add ability to connect via URI only #440

Closed laus102 closed 2 years ago

laus102 commented 2 years ago

Out of the box the library does not support establishing a wss MQTT connection via just the supplied URI. You must inject the port number.

This adds a var to CocoaMQTTWebSocket that allows the connection request to bypass the port number altogether, only using the supplied URI.