Guest User

Untitled

a guest
Dec 7th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. let clientID = "CocoaMQTT-" + String(ProcessInfo().processIdentifier)
  2. //This is myHost: wss://myserver.test:9001
  3. let mqtt = CocoaMQTT(clie.ntID: clientID, host: "myserver.test", port: 9001)
  4. mqtt.keepAlive = 10000
  5. mqtt.username = "username"
  6. mqtt.password = "password"
  7. mqtt.enableSSL = true
  8. mqtt.delegate = self
  9. mqtt.connect()
  10. mqtt.autoReconnect = true
Add Comment
Please, Sign In to add comment