init(responder:configuration:additionalChannelHandlers:shouldUpgrade:)
Initialize HTTP1AndWebSocketChannel with async shouldUpgrade
function
init(responder: @escaping HTTPChannelHandler.Responder, configuration: WebSocketServerConfiguration, additionalChannelHandlers: @escaping () -> [any RemovableChannelHandler] = { [] }, shouldUpgrade: @escaping (HTTPRequest, Channel, Logger) async throws -> ShouldUpgradeResult<WebSocketDataHandler<Context>>)
responder: HTTP responder
additionalChannelHandlers: Additional channel handlers to add
configuration: WebSocket configuration
shouldUpgrade: Function returning whether upgrade should be allowed