Sisk

Method

HttpServerEngineWebSocket.ReceiveAsync

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

ReceiveAsync(Memory<byte>, CancellationToken) #

Receives data from the WebSocket asynchronously.

C#
public abstract ValueTask<ValueWebSocketReceiveResult> ReceiveAsync(Memory<byte> buffer, CancellationToken cancellationToken)

Parameters #

buffer Memory<byte>

The buffer to receive the data into.

cancellationToken CancellationToken

The cancellation token.

Returns #

ValueTask<ValueWebSocketReceiveResult>

A ValueTask representing the asynchronous operation. The result contains the ValueWebSocketReceiveResult.

Type to search the documentation and the API reference.