PROTOCOL
ApolloWebSocketClient
public protocol ApolloWebSocketClient: WebSocketClient
Protocol allowing alternative implementations of web sockets beyond
ApolloWebSocket
. ExtendsStarscream
'sWebSocketClient
protocol.
Properties
request
var request: URLRequest
The URLRequest used on connection.
callbackQueue
var callbackQueue: DispatchQueue
Queue where the callbacks are executed
Methods
init(request:protocols:)
init(request: URLRequest, protocols: [String]?)
Required initializer
- Parameter request: The URLRequest to use on connection.
- Parameter protocols: The supported protocols
Parameters
Name | Description |
---|---|
request | The URLRequest to use on connection. |
protocols | The supported protocols |