Share via


MessageWebSocket.SendFinalFrameAsync(IBuffer) Method

Definition

Asynchronously (with progress) writes a frame of data in a sequential stream, with the semantics that this is the last frame in a WebSocket message (the FIN bit on this frame is set to 1). This method and SendNonfinalFrameAsync allow you to send individual WebSocket frames.

public:
 virtual IAsyncOperationWithProgress<unsigned int, unsigned int> ^ SendFinalFrameAsync(IBuffer ^ data) = SendFinalFrameAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<uint32_t, uint32_t> SendFinalFrameAsync(IBuffer const& data);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<uint,uint> SendFinalFrameAsync(IBuffer data);
function sendFinalFrameAsync(data)
Public Function SendFinalFrameAsync (data As IBuffer) As IAsyncOperationWithProgress(Of UInteger, UInteger)

Parameters

data
IBuffer

A buffer containing the data that constitutes the frame to be sent.

Returns

IAsyncOperationWithProgress<UInt32,UInt32>

Windows.Foundation.IAsyncOperationWithProgress<unsigned int,unsigned int>

IAsyncOperationWithProgress<uint32_t,uint32_t>

An asynchronous byte writer operation with progress.

Attributes

Windows requirements

Requirements Description
Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)
App capabilities
internetClientServer privateNetworkClientServer

Applies to