HttpServerStop Method (CloseStatusCode, String) |
Note: This API is now obsolete.
Namespace: Sfs2X.WebSocketSharp.Server
[ObsoleteAttribute("This method will be removed.")] public void Stop( CloseStatusCode code, string reason )
One of the CloseStatusCode enum values.
It represents the status code indicating the reason for the WebSocket connection close.
A String that represents the reason for the WebSocket connection close.
The size must be 123 bytes or less in UTF-8.
Exception | Condition |
---|---|
ArgumentOutOfRangeException | The size of reason is greater than 123 bytes. |
ArgumentException | code is MandatoryExtension. -or- code is NoStatus and there is reason. -or- reason could not be UTF-8-encoded. |