WebSocketOpcode

public enum WebSocketOpcode

An operation code for a websocket frame.

  • Undocumented

    Declaration

    Swift

    case continuation
  • Undocumented

    Declaration

    Swift

    case text
  • Undocumented

    Declaration

    Swift

    case binary
  • Undocumented

    Declaration

    Swift

    case unknownNonControl(UInt8)
  • Undocumented

    Declaration

    Swift

    case connectionClose
  • Undocumented

    Declaration

    Swift

    case ping
  • Undocumented

    Declaration

    Swift

    case pong
  • Undocumented

    Declaration

    Swift

    case unknownControl(UInt8)
  • Create an opcode from the encoded representation.

    Declaration

    Swift

    public init?(encodedWebSocketOpcode encoded: UInt8)
  • Whether the opcode is in the control range: that is, if the high bit of the opcode nibble is 1.

    Declaration

    Swift

    public var isControlOpcode: Bool { get }
  • Declaration

    Swift

    public static func ==(lhs: WebSocketOpcode, rhs: WebSocketOpcode) -> Bool