Sisk

Method

HttpServerEngineWebSocket.CloseOutputAsync

Namespace
Sisk.Core.Http.Engine
Assembly
Sisk.Core.dll

CloseOutputAsync(WebSocketCloseStatus, string?, CancellationToken) #

Closes the output stream of the WebSocket asynchronously.

C#
public abstract Task CloseOutputAsync(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 #

Task

A Task representing the asynchronous operation.

Type to search the documentation and the API reference.