Table of Contents

Class WebSocketFrame

Namespace
Selenium.WebDriver.BiDi.Cdp.Network
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests.

public sealed record WebSocketFrame : IEquatable<WebSocketFrame>
Inheritance
WebSocketFrame
Implements
Inherited Members

Constructors

WebSocketFrame(double, bool, string)

WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests.

public WebSocketFrame(double Opcode, bool Mask, string PayloadData)

Parameters

Opcode double

WebSocket message opcode.

Mask bool

WebSocket message mask.

PayloadData string

WebSocket message payload data. If the opcode is 1, this is a text message and payloadData is a UTF-8 string. If the opcode isn't 1, then payloadData is a base64 encoded string representing binary data.

Properties

Mask

WebSocket message mask.

public bool Mask { get; init; }

Property Value

bool

Opcode

WebSocket message opcode.

public double Opcode { get; init; }

Property Value

double

PayloadData

WebSocket message payload data. If the opcode is 1, this is a text message and payloadData is a UTF-8 string. If the opcode isn't 1, then payloadData is a base64 encoded string representing binary data.

public string PayloadData { get; init; }

Property Value

string