Class WebSocketFrame
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
OpcodedoubleWebSocket message opcode.
MaskboolWebSocket message mask.
PayloadDatastringWebSocket 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
Opcode
WebSocket message opcode.
public double Opcode { get; init; }
Property Value
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; }