ConnectionUpgrader
public struct ConnectionUpgrader
The struct that manages the process of upgrading connections from HTTP 1.1 to other protocols.
Note
There a single instance of this struct in a server.-
Register a
ConnectionUpgradeFactory
class instances used to create appropriateIncomingSocketProcessor
s for upgraded conectionsDeclaration
Swift
public static func register(factory: ConnectionUpgradeFactory)
Parameters
factory
The
ConnectionUpgradeFactory
class instance being registered.