CLASS
SplitNetworkTransport
public class SplitNetworkTransport
A network transport that sends subscriptions using one
NetworkTransport
and other requests using anotherNetworkTransport
. Ideal for sending subscriptions via a web socket but everything else via HTTP.
Properties
clientName
public var clientName: String
clientVersion
public var clientVersion: String
Methods
init(uploadingNetworkTransport:webSocketNetworkTransport:)
public init(uploadingNetworkTransport: UploadingNetworkTransport, webSocketNetworkTransport: NetworkTransport)
Designated initializer
Parameters:
- uploadingNetworkTransport: An
UploadingNetworkTransport
to use for non-subscription requests. Should generally be aRequestChainNetworkTransport
or something similar.- webSocketNetworkTransport: A
NetworkTransport
to use for subscription requests. Should generally be aWebSocketTransport
or something similar.
Parameters
Name | Description |
---|---|
uploadingNetworkTransport | An UploadingNetworkTransport to use for non-subscription requests. Should generally be a RequestChainNetworkTransport or something similar. |
webSocketNetworkTransport | A NetworkTransport to use for subscription requests. Should generally be a WebSocketTransport or something similar. |