NIOWebSocketUpgradeError

public enum NIOWebSocketUpgradeError : Error

Errors that can be thrown by NIOWebSocket during protocol upgrade.

  • A HTTP header on the upgrade request was invalid.

    Declaration

    Swift

    case invalidUpgradeHeader
  • The HTTP request targets a websocket pipeline that does not support it in some way.

    Declaration

    Swift

    case unsupportedWebSocketTarget