NIOWebSocketUpgradeError

public struct NIOWebSocketUpgradeError : Error, Equatable

Errors that can be thrown by NIOWebSocket during protocol upgrade.

  • A HTTP header on the upgrade request was invalid.

    Declaration

    Swift

    public static let invalidUpgradeHeader: NIOWebSocketUpgradeError
  • The HTTP request targets a websocket pipeline that does not support it in some way.

    Declaration

    Swift

    public static let unsupportedWebSocketTarget: NIOWebSocketUpgradeError