WebSocketClose Method (CloseStatusCode) |
Namespace: Sfs2X.WebSocketSharp
public void Close( CloseStatusCode code )
One of the CloseStatusCode enum values.
It represents the status code indicating the reason for the close.
Exception | Condition |
---|---|
ArgumentException | code is ServerError. It cannot be used by clients. -or- code is MandatoryExtension. It cannot be used by servers. |