Sisk

Method

HttpWebSocket.CloseAsync

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

CloseAsync(CancellationToken) #

Closes the WebSocket connection asynchronously.

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

Parameters #

cancellation CancellationToken

The CancellationToken to use for cancellation.

Returns #

Task<HttpResponse>

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

Type to search the documentation and the API reference.