API
WebSocket.CloseOutputAsync
Sends a close frame without waiting for the peer close handshake.
Formal Syntax & Structure
csharp syntaxcsharp
await socket.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, "Done", token)Working Example
Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.await socket.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, "Done", token)