Skip to content
leeway edited this page Nov 19, 2021 · 1 revision

WSStream

public protocol WSStream 

Requirements

delegate

var delegate: WSStreamDelegate? 

connect(url:​port:​timeout:​ssl:​completion:​)

func connect(url: URL, port: Int, timeout: TimeInterval, ssl: SSLSettings, completion: @escaping ((Error?) -> Void))

write(data:​)

func write(data: Data) -> Int

read()

func read() -> Data?

cleanup()

func cleanup()

sslTrust()

!((os(Linux) || os(watchOS)))
func sslTrust() -> (trust: SecTrust?, domain: String?)
Types
Protocols
Global Variables
Clone this wiki locally