-
Notifications
You must be signed in to change notification settings - Fork 422
CocoaMQTTWebSocket
leeway edited this page Nov 19, 2021
·
1 revision
public class CocoaMQTTWebSocket: CocoaMQTTSocketProtocol
CocoaMQTTSocketProtocol
, CocoaMQTTWebSocketConnectionDelegate
public typealias ConnectionBuilder = CocoaMQTTWebSocketConnectionBuilder
public init(uri: String = "", builder: ConnectionBuilder = CocoaMQTTWebSocket.DefaultConnectionBuilder())
public var enableSSL = false
public var headers: [String: String] = [:]
public func setDelegate(_ theDelegate: CocoaMQTTSocketDelegate?, delegateQueue: DispatchQueue?)
public func connect(toHost host: String, onPort port: UInt16) throws
public func connect(toHost host: String, onPort port: UInt16, withTimeout timeout: TimeInterval) throws
public func disconnect()
public func readData(toLength length: UInt, withTimeout timeout: TimeInterval, tag: Int)
public func write(_ data: Data, withTimeout timeout: TimeInterval, tag: Int)
public func connection(_ conn: CocoaMQTTWebSocketConnection, didReceive trust: SecTrust, completionHandler: @escaping (Bool) -> Swift.Void)
public func connectionOpened(_ conn: CocoaMQTTWebSocketConnection)
public func connectionClosed(_ conn: CocoaMQTTWebSocketConnection, withError error: Error?)
public func connection(_ conn: CocoaMQTTWebSocketConnection, receivedString string: String)
public func connection(_ conn: CocoaMQTTWebSocketConnection, receivedData data: Data)
Types
- CloseCode
- CocoaMQTT
- CocoaMQTT5
- CocoaMQTT5Message
- CocoaMQTTAUTHReasonCode
- CocoaMQTTCONNACKReasonCode
- CocoaMQTTConnAck
- CocoaMQTTConnState
- CocoaMQTTDISCONNECTReasonCode
- CocoaMQTTError
- CocoaMQTTError.FoundationConnection
- CocoaMQTTLogger
- CocoaMQTTLoggerLevel
- CocoaMQTTMessage
- CocoaMQTTPUBACKReasonCode
- CocoaMQTTPUBCOMPReasonCode
- CocoaMQTTPUBRECReasonCode
- CocoaMQTTPUBRELReasonCode
- CocoaMQTTPropertyName
- CocoaMQTTQoS
- CocoaMQTTSUBACKReasonCode
- CocoaMQTTSocket
- CocoaMQTTUNSUBACKReasonCode
- CocoaMQTTWebSocket
- CocoaMQTTWebSocket.DefaultConnectionBuilder
- CocoaMQTTWebSocket.FoundationConnection
- CocoaMQTTWebSocket.StarscreamConnection
- CocoaRetainHandlingOption
- ErrorType
- FoundationStream
- MqttAuthProperties
- MqttConnectProperties
- MqttDecodeConnAck
- MqttDecodePubAck
- MqttDecodePubComp
- MqttDecodePubRec
- MqttDecodePubRel
- MqttDecodePublish
- MqttDecodeSubAck
- MqttDecodeUnsubAck
- MqttPublishProperties
- MqttSubscription
- PayloadFormatIndicator
- SSLCert
- SSLClientCertificate
- SSLClientCertificateError
- SSLSecurity
- SSLSettings
- WSError
- WebSocket
- WebSocket.OpCode
- WebSocket.WSResponse
- formatInt
Protocols
- CocoaMQTT5Delegate
- CocoaMQTTDelegate
- CocoaMQTTSocketDelegate
- CocoaMQTTSocketProtocol
- CocoaMQTTWebSocketConnection
- CocoaMQTTWebSocketConnectionBuilder
- CocoaMQTTWebSocketConnectionDelegate
- SSLTrustValidator
- WSStream
- WSStreamDelegate
- WebSocketAdvancedDelegate
- WebSocketClient
- WebSocketDelegate
- WebSocketPongDelegate