WebSocketCloseInfo Class
- Experimental (WEBPLATEXP0027)
The status code and the reason of the closing handshake of a WebSocketStream (https://whatpr.org/websockets/48.html#dictdef-websocketcloseinfo).
[Experimental("WEBPLATEXP0027", UrlFormat = "https://github.com/meziantou/Meziantou.Framework/blob/main/src/Meziantou.Framework.WebPlatform/docs/experimental-apis.md#{0}")]
public sealed class WebSocketCloseInfoConstructors
| Name | Description |
|---|---|
| WebSocketCloseInfo() |
WebSocketCloseInfo()
WebSocketStream.cspublic WebSocketCloseInfo()No documentation is available.
Properties
| Name | Description |
|---|---|
| CloseCode | Gets the status code, or null (a Close frame without status code, or 1000 when there is a reason). |
| Reason | Gets the reason. |
CloseCode
WebSocketStream.csGets the status code, or null (a Close frame without status code, or 1000 when there is a reason).
public ushort? CloseCode { get; init; }Reason
WebSocketStream.csGets the reason.
public string Reason { get; init; }