aciidgh / SwiftMQTT

MQTT Client in pure swift ❤️
MIT License
270 stars 71 forks source link

Doesn't work on Linux #51

Open damouse opened 4 years ago

damouse commented 4 years ago

Doesn't work on Linux with Swift version 4.2.

/app/.build/checkouts/SwiftMQTT/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:31:9: error: type 'Stream' has no member 'getStreamsToHost'
        Stream.getStreamsToHost(withName: host, port: Int(port), inputStream: &inputStream, outputStream: &outputStream)
        ^~~~~~ ~~~~~~~~~~~~~~~~
/app/.build/checkouts/SwiftMQTT/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:58:42: error: cannot convert value of type 'String' to expected argument type 'AnyObject?'
                inputStream?.setProperty(securityLevel, forKey: .socketSecurityLevelKey)