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

WebSocketClient

public protocol WebSocketClient: class 

Inheritance

class

Default Implementations

write(string:)

public func write(string: String) 

write(data:)

public func write(data: Data) 

write(ping:)

public func write(ping: Data) 

write(pong:)

public func write(pong: Data) 

disconnect()

public func disconnect() 

Requirements

delegate

var delegate: WebSocketDelegate? 

pongDelegate

var pongDelegate: WebSocketPongDelegate? 

disableSSLCertValidation

var disableSSLCertValidation: Bool 

overrideTrustHostname

var overrideTrustHostname: Bool 

desiredTrustHostname

var desiredTrustHostname: String? 

sslClientCertificate

var sslClientCertificate: SSLClientCertificate? 

security

!((os(Linux)))
var security: SSLTrustValidator? 

enabledSSLCipherSuites

!((os(Linux)))
var enabledSSLCipherSuites: [SSLCipherSuite]? 

isConnected

var isConnected: Bool 

connect()

func connect()

disconnect(forceTimeout:​closeCode:​)

func disconnect(forceTimeout: TimeInterval?, closeCode: UInt16)

write(string:​completion:​)

func write(string: String, completion: (() -> ())?)

write(data:​completion:​)

func write(data: Data, completion: (() -> ())?)

write(ping:​completion:​)

func write(ping: Data, completion: (() -> ())?)

write(pong:​completion:​)

func write(pong: Data, completion: (() -> ())?)
Types
Protocols
Global Variables
Clone this wiki locally