Method
HttpServerEngineWebSocket.SendAsync
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 #
A ValueTask representing the asynchronous operation.