Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let clientID = "CocoaMQTT-" + String(ProcessInfo().processIdentifier)
- //This is myHost: wss://myserver.test:9001
- let mqtt = CocoaMQTT(clie.ntID: clientID, host: "myserver.test", port: 9001)
- mqtt.keepAlive = 10000
- mqtt.username = "username"
- mqtt.password = "password"
- mqtt.enableSSL = true
- mqtt.delegate = self
- mqtt.connect()
- mqtt.autoReconnect = true
Add Comment
Please, Sign In to add comment