Method 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
bufferReadOnlyMemory<byte>The buffer containing the data to send.
messageTypeWebSocketMessageTypeThe type of message to send.
endOfMessageboolA value indicating whether this is the end of the message.
cancellationTokenCancellationTokenThe cancellation token.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語