Edit

Share via


ValueWebSocketReceiveResult Struct

Definition

Represents the result of performing a single ReceiveAsync(Memory<Byte>, CancellationToken) operation on a WebSocket.

C#
public readonly struct ValueWebSocketReceiveResult
Inheritance
ValueWebSocketReceiveResult

Constructors

ValueWebSocketReceiveResult(Int32, WebSocketMessageType, Boolean)

Initializes a new instance of the ValueWebSocketReceiveResult struct. An instance of this struct represents the result of performing a single ReceiveAsync operation on a WebSocket.

Properties

Count

Gets the number of bytes that the WebSocket received.

EndOfMessage

Gets whether the message has been received completely.

MessageType

Gets the type of the current message.

Applies to

Product Versions
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1