WebSocketClient.Close Method
Namespace: Rebex.Net
Assembly: Rebex.WebSocket.dll (version 7.0.9119)
Close(WebSocketCloseStatus, String)
Closes the sending part of the WebSocket (unless already closed) and waits for the receiving part to be closed.
Declaration
public void Close(WebSocketCloseStatus closeStatus, string statusDescription)
Parameters
Type | Name | Description |
---|---|---|
WebSocketCloseStatus | closeStatus | Close status to send to the server. |
String | statusDescription | Close status description to send to the server. |
Close()
Closes the sending part of the WebSocket (unless already closed) and waits for the receiving part to be closed.
Declaration
public void Close()