Skip to content

CocoaMQTTSocketProtocol

leeway edited this page Nov 19, 2021 · 1 revision

CocoaMQTTSocketProtocol

public protocol CocoaMQTTSocketProtocol 

Requirements

enableSSL

var enableSSL: Bool 

setDelegate(_:​delegateQueue:​)

func setDelegate(_ theDelegate: CocoaMQTTSocketDelegate?, delegateQueue: DispatchQueue?)

connect(toHost:​onPort:​)

func connect(toHost host: String, onPort port: UInt16) throws

connect(toHost:​onPort:​withTimeout:​)

func connect(toHost host: String, onPort port: UInt16, withTimeout timeout: TimeInterval) throws

disconnect()

func disconnect()

readData(toLength:​withTimeout:​tag:​)

func readData(toLength length: UInt, withTimeout timeout: TimeInterval, tag: Int)

write(_:​withTimeout:​tag:​)

func write(_ data: Data, withTimeout timeout: TimeInterval, tag: Int)
Types
Protocols
Global Variables
Clone this wiki locally