-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
Labels
api-approvedAPI was approved in API review, it can be implementedAPI was approved in API review, it can be implementedarea-System.Nettenet-performancePerformance related issuePerformance related issue
Milestone
Description
Separated out of https://github.com/dotnet/corefx/issues/21281 for tracking purposes.
- Implement in System.Net.WebSockets in corefx
- Expose from System.Net.WebSockets contract in corefx
- Add tests to System.Net.WebSockets tests in corefx
namespace System.Net.WebSockets
{
public abstract class WebSocket
{
public virtual ValueTask<ValueWebSocketReceiveResult> ReceiveAsync(Buffer<byte> buffer, CancellationToken cancellationToken = default(CancellationToken));
public virtual Task SendAsync(ReadOnlyBuffer<byte> buffer, CancellationToken cancellationToken = default(CancellationToken));
…
}
[StructLayout(LayoutKind.Auto)]
public struct ValueWebSocketReceiveResult
{
public ValueWebSocketReceiveResult(int count, WebSocketMessageType messageType, bool endOfMessage);
public ValueWebSocketReceiveResult(int count, WebSocketMessageType messageType, bool endOfMessage, WebSocketCloseStatus? closeStatus, string closeStatusDescription);
public WebSocketCloseStatus? CloseStatus { get; }
public string CloseStatusDescription { get; }
public int Count { get; }
public bool EndOfMessage { get; }
public WebSocketMessageType MessageType { get; }
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api-approvedAPI was approved in API review, it can be implementedAPI was approved in API review, it can be implementedarea-System.Nettenet-performancePerformance related issuePerformance related issue