Instance Methodswift-websocket 1.1.1WSCore->Swift
serverExtensionNegotiation(requestHeaders:)
Do the client/server WebSocket negotiation based off headers received from the client.
func serverExtensionNegotiation(requestHeaders: HTTPFields) throws -> (HTTPFields, [any WebSocketExtension])
Parameters
- requestHeaders
Client request headers
Returns
Headers to pass back to client and array of server extensions to enable