Instance Propertyswift-nio 2.81.0NIOWebSocket
supportedProtocol
RFC 6455 specs this as the required entry in the Upgrade header.
- iOS
- 16+
- macOS
- 13+
- tvOS
- 16+
- watchOS
- 9+
let supportedProtocol: String
RFC 6455 specs this as the required entry in the Upgrade header.
let supportedProtocol: String
s12NIOWebSocket011NIOTypedWebB14ClientUpgraderC17supportedProtocolSSvp
What are these?48Y21
import NIOWebSocket
final class NIOTypedWebSocketClientUpgrader<UpgradeResult> where UpgradeResult : Sendable
A NIOTypedHTTPClientProtocolUpgrader
that knows how to do the WebSocket upgrade dance.
@frozen struct String
A Unicode string value that is a collection of characters.
init(requestKey: String = NIOWebSocketClientUpgrader.randomRequestKey(), maxFrameSize: Int = 1 << 14, enableAutomaticErrorHandling: Bool = true, upgradePipelineHandler: @escaping (Channel, HTTPResponseHead) -> EventLoopFuture<UpgradeResult>)
let requiredUpgradeHeaders: [String]
None of the websocket headers are actually defined as ‘required’.
func addCustom(upgradeRequestHeaders: inout NIOHTTP1.HTTPHeaders)
func shouldAllowUpgrade(upgradeResponse: HTTPResponseHead) -> Bool
func upgrade(channel: Channel, upgradeResponse: HTTPResponseHead) -> EventLoopFuture<UpgradeResult>