fin
The value of the fin bit. If set, this is the last frame in a fragmented frame. If not set, this frame is one of the intermediate frames in a fragmented frame. Must be set if a frame is not fragmented at all.
var fin: Bool { get set }The value of the fin bit. If set, this is the last frame in a fragmented frame. If not set, this frame is one of the intermediate frames in a fragmented frame. Must be set if a frame is not fragmented at all.
var fin: Bool { get set }import NIOWebSocketstruct WebSocketFrameA structured representation of a single WebSocket frame.
@frozen struct BoolA value type whose instances are either true or false.
init(allocator: ByteBufferAllocator) Creates an empty WebSocketFrame.
init(fin: Bool = false, rsv1: Bool = false, rsv2: Bool = false, rsv3: Bool = false, opcode: WebSocketOpcode = .continuation, maskKey: WebSocketMaskingKey? = nil, data: ByteBuffer, extensionData: ByteBuffer? = nil) Create a WebSocketFrame with the given properties.
var data: ByteBuffer { get set }The application data.
var debugDescription: String { get }var description: String { get }A String describing this WebSocketFrame. Example:
var extensionData: ByteBuffer? { get set }The extension data, if any.
var length: Int { get }The total length of the data in the frame.
var maskKey: WebSocketMaskingKey?The masking key, if any.
var opcode: WebSocketOpcode { get set }The opcode for this frame.
var reservedBits: WebSocketFrame.ReservedBits { get set }The value of all the reserved bits. Must be empty unless using an extension that defines their use.
var rsv1: Bool { get set }The value of the first reserved bit. Must be false unless using an extension that defines its use.
var rsv2: Bool { get set }The value of the second reserved bit. Must be false unless using an extension that defines its use.
var rsv3: Bool { get set }The value of the third reserved bit. Must be false unless using an extension that defines its use.
var unmaskedData: ByteBuffer { get }The unmasked application data.
var unmaskedExtensionData: ByteBuffer? { get }The unmasked extension data.
struct ReservedBitsWebSocketFrame reserved bits option set