Method CloseOutputAsync
CloseOutputAsync(WebSocketCloseStatus, string?, CancellationToken)
Closes the output stream of the WebSocket asynchronously.
public abstract Task CloseOutputAsync(WebSocketCloseStatus closeStatus, string? reason, CancellationToken cancellation)
Parameters
closeStatus
WebSocketCloseStatusThe status code for closing the WebSocket.
reason
stringThe reason for closing the WebSocket.
cancellation
CancellationTokenThe cancellation token.