Understanding the CocoaMQTT client in Swift 3