Method
HttpWebSocket.CloseAsync
CloseAsync(CancellationToken) #
Closes the WebSocket connection asynchronously.
public Task<HttpResponse> CloseAsync(CancellationToken cancellation = default)Parameters #
cancellation CancellationToken
The CancellationToken to use for cancellation.
Returns #
A Task that represents the asynchronous close operation, which returns an HttpResponse indicating the result of the close operation.