Table of Contents

Method CloseAsync

Namespace
Sisk.Core.Http.Streams
Assembly
Sisk.Core.dll

CloseAsync(CancellationToken)

Closes the WebSocket connection asynchronously.

public Task<HttpResponse> CloseAsync(CancellationToken cancellation = default)

Parameters

cancellation CancellationToken

The CancellationToken to use for cancellation.

Returns

Task<HttpResponse>

A Task<TResult> that represents the asynchronous close operation, which returns an HttpResponse indicating the result of the close operation.