Method CloseAsync
Namespace: Sisk.Core.Http.Engine
Assembly: Sisk.Core.dll
CloseAsync(WebSocketCloseStatus, string?, CancellationToken)
Closes the WebSocket connection asynchronously.
public abstract Task CloseAsync(WebSocketCloseStatus closeStatus, string? reason, CancellationToken cancellation)
Parameters
closeStatus WebSocketCloseStatus
The status code for closing the WebSocket.
reason string?
The reason for closing the WebSocket.
cancellation CancellationToken
The cancellation token.
Returns
A Task representing the asynchronous operation.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語