Skip to content

CocoaMQTTWebSocket_StarscreamConnection

leeway edited this page Nov 19, 2021 · 1 revision

CocoaMQTTWebSocket.StarscreamConnection

class StarscreamConnection: NSObject, CocoaMQTTWebSocketConnection 

Inheritance

CocoaMQTTWebSocketConnection, NSObject, SSLTrustValidator, WebSocketDelegate

Initializers

init(request:)

public init(request: URLRequest) 

Properties

reference

public var reference: WebSocket

delegate

public weak var delegate: CocoaMQTTWebSocketConnectionDelegate?

queue

public var queue: DispatchQueue 

Methods

connect()

public func connect() 

disconnect()

public func disconnect() 

write(data:handler:)

public func write(data: Data, handler: @escaping (Error?) -> Void) 

isValid(_:domain:)

public func isValid(_ trust: SecTrust, domain: String?) -> Bool 

websocketDidConnect(socket:)

public func websocketDidConnect(socket: WebSocketClient) 

websocketDidDisconnect(socket:error:)

public func websocketDidDisconnect(socket: WebSocketClient, error: Error?) 

websocketDidReceiveMessage(socket:text:)

public func websocketDidReceiveMessage(socket: WebSocketClient, text: String) 

websocketDidReceiveData(socket:data:)

public func websocketDidReceiveData(socket: WebSocketClient, data: Data) 
Types
Protocols
Global Variables
Clone this wiki locally