Static Propertyswift-nio 2.81.0NIOWebSocket
ping
WebSocketOpcode.swift:25static let ping: WebSocketOpcode
static let ping: WebSocketOpcode
import NIOWebSocket
struct WebSocketOpcode
An operation code for a websocket frame.
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 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
.