Table of Contents

Method SendAsync

Namespace
Sisk.Core.Http.Engine
Assembly
Sisk.Core.dll

SendAsync(ReadOnlyMemory<byte>, WebSocketMessageType, bool, CancellationToken)

Sends data over the WebSocket asynchronously.

public abstract ValueTask SendAsync(ReadOnlyMemory<byte> buffer, WebSocketMessageType messageType, bool endOfMessage, CancellationToken cancellationToken)

Parameters

buffer ReadOnlyMemory<byte>

The buffer containing the data to send.

messageType WebSocketMessageType

The type of message to send.

endOfMessage bool

A value indicating whether this is the end of the message.

cancellationToken CancellationToken

The cancellation token.

Returns

ValueTask

A ValueTask representing the asynchronous operation.