Method CloseAsync
CloseAsync(WebSocketCloseStatus, string?, CancellationToken)
Closes the WebSocket connection asynchronously.
public abstract Task CloseAsync(WebSocketCloseStatus closeStatus, string? reason, CancellationToken cancellation)
Parameters
closeStatusWebSocketCloseStatusThe status code for closing the WebSocket.
reasonstringThe reason for closing the WebSocket.
cancellationCancellationTokenThe cancellation token.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語