Skip to main content
.NET API Catalog
  • Browse
  • Search
  • Diff
  • Others
    Feature Usage Stats
    Version Source
  • .NET Upgrade Planner
  1. Catalog
  2. System.Net.WebSockets
  3. ClientWebSocket
  4. ReceiveAsync(Memory<Byte>, CancellationToken)
  • ClientWebSocket
    • ClientWebSocket()
    • CloseStatus
    • CloseStatusDescription
    • HttpResponseHeaders
    • HttpStatusCode
    • Options
    • State
    • SubProtocol
    • Abort()
    • CloseAsync(WebSocketCloseStatus, String, CancellationToken)
    • CloseOutputAsync(WebSocketCloseStatus, String, CancellationToken)
    • ConnectAsync(Uri, CancellationToken)
    • ConnectAsync(Uri, HttpMessageInvoker, CancellationToken)
    • Dispose()
    • ReceiveAsync(ArraySegment<Byte>, CancellationToken)
    • ReceiveAsync(Memory<Byte>, CancellationToken)
    • SendAsync(ArraySegment<Byte>, WebSocketMessageType, Boolean, CancellationToken)
    • SendAsync(ReadOnlyMemory<Byte>, WebSocketMessageType, Boolean, CancellationToken)
    • SendAsync(ReadOnlyMemory<Byte>, WebSocketMessageType, WebSocketMessageFlags, CancellationToken)
net6.0
namespace System.Net.WebSockets
{
    public sealed class ClientWebSocket : WebSocket
    {
        public override ValueTask<ValueWebSocketReceiveResult> ReceiveAsync(Memory<byte> buffer, CancellationToken cancellationToken);
    }
}
.NET
5.06.07.08.09.011.0
.NET Core
3.03.1
.NET Standard
2.1
Information specific to net6.0
Assembly

System.Net.WebSockets.Client , Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a

Referencing

The API is automatically referenced.

Platform Restrictions

This API is supported on all platforms.

  • Built-in API
  • Package-provided API
Search

11/14/2026
This site is managed by Microsoft | © 2026 Microsoft. All rights reserved.
  • Privacy Statement
  • Consumer Health Privacy
  • Terms of Use
  • Contact Us
  • Hosted on Microsoft Azure
  • Manage cookies
  • Your Privacy Choices
Oops, we couldn't process your request. Reload 🗙