Closes the sending part of the WebSocket (unless already closed) and waits for the receiving part to be closed.
Namespace:
Rebex.Net
Assembly:
Rebex.WebSocket (in Rebex.WebSocket.dll)
Syntax
Visual Basic |
---|
Public Sub Close ( _ closeStatus As WebSocketCloseStatus, _ statusDescription As String _ ) |
C# |
---|
public void Close( WebSocketCloseStatus closeStatus, string statusDescription ) |
Parameters
- closeStatus
- Type: Rebex.Net..::..WebSocketCloseStatus
Close status to send to the server.
- statusDescription
- Type: System..::..String
Close status description to send to the server.