/
Launch Apollo Studio


PROTOCOL

ApolloWebSocketClient

public protocol ApolloWebSocketClient: WebSocketClient

Protocol allowing alternative implementations of web sockets beyond ApolloWebSocket. Extends Starscream's WebSocketClient 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

NameDescription
requestThe URLRequest to use on connection.
protocolsThe supported protocols
Edit on GitHub