WebSocketClient.CloseOutputAsync Method
Namespace: Rebex.Net
Assembly: Rebex.WebSocket.dll (version 7.0.9147)
CloseOutputAsync(WebSocketCloseStatus, String, CancellationToken)
Closes the sending part of the WebSocket, making it possible to still receive messages from the server.
Declaration
public async Task CloseOutputAsync(WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
Web |
closeStatus | Close status to send to the server. |
String | statusDescription | Close status description to send to the server. |
Cancellation |
cancellationToken | Cancellation token to cancel the operation. |
Returns
Type | Description |
---|---|
Task |