Method ReceiveAsync
ReceiveAsync(Memory<byte>, CancellationToken)
Receives data from the WebSocket asynchronously.
public abstract ValueTask<ValueWebSocketReceiveResult> ReceiveAsync(Memory<byte> buffer, CancellationToken cancellationToken)
Parameters
bufferMemory<byte>The buffer to receive the data into.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- ValueTask<ValueWebSocketReceiveResult>
A ValueTask<TResult> representing the asynchronous operation. The result contains the ValueWebSocketReceiveResult.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語