CocoaMQTTSocketDelegate - emqx/CocoaMQTT GitHub Wiki
CocoaMQTTSocketDelegate
public protocol CocoaMQTTSocketDelegate: AnyObject
Inheritance
AnyObject
Requirements
socketConnected(_:)
func socketConnected(_ socket: CocoaMQTTSocketProtocol)
socket(_:didReceive:completionHandler:)
func socket(_ socket: CocoaMQTTSocketProtocol, didReceive trust: SecTrust, completionHandler: @escaping (Bool) -> Swift.Void)
socket(_:didWriteDataWithTag:)
func socket(_ socket: CocoaMQTTSocketProtocol, didWriteDataWithTag tag: Int)
socket(_:didRead:withTag:)
func socket(_ socket: CocoaMQTTSocketProtocol, didRead data: Data, withTag tag: Int)
socketDidDisconnect(_:withError:)
func socketDidDisconnect(_ socket: CocoaMQTTSocketProtocol, withError err: Error?)