CocoaMQTTWebSocketConnectionDelegate - emqx/CocoaMQTT GitHub Wiki
CocoaMQTTWebSocketConnectionDelegate
public protocol CocoaMQTTWebSocketConnectionDelegate: AnyObject
Inheritance
AnyObject
Requirements
connection(_:didReceive:completionHandler:)
func connection(_ conn: CocoaMQTTWebSocketConnection, didReceive trust: SecTrust, completionHandler: @escaping (Bool) -> Swift.Void)
connectionOpened(_:)
func connectionOpened(_ conn: CocoaMQTTWebSocketConnection)
connectionClosed(_:withError:)
func connectionClosed(_ conn: CocoaMQTTWebSocketConnection, withError error: Error?)
connection(_:receivedString:)
func connection(_ conn: CocoaMQTTWebSocketConnection, receivedString string: String)
connection(_:receivedData:)
func connection(_ conn: CocoaMQTTWebSocketConnection, receivedData data: Data)