Bewerken

Delen via


ValueWebSocketReceiveResult Struct

Definition

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

public value class ValueWebSocketReceiveResult
public readonly struct ValueWebSocketReceiveResult
type ValueWebSocketReceiveResult = struct
Public Structure 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