Structureswift-nio 2.81.0NIOWebSocket
WebSocketOpcode
An operation code for a websocket frame.
struct WebSocketOpcode
An operation code for a websocket frame.
struct WebSocketOpcode
import NIOWebSocket
protocol CaseIterable
A type that provides a collection of all of its values.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
init?(encodedWebSocketOpcode encoded: UInt8)
Create an opcode from the encoded representation.
static var allCases: [WebSocketOpcode]
static let binary: WebSocketOpcode
static let connectionClose: WebSocketOpcode
static let continuation: WebSocketOpcode
static let ping: WebSocketOpcode
static let pong: WebSocketOpcode
static let text: WebSocketOpcode
var description: String { get }
var isControlOpcode: Bool { get }
Whether the opcode is in the control range: that is, if the high bit of the opcode nibble is 1
.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.