CloseEventInit Class
The initialization dictionary of a CloseEvent (https://websockets.spec.whatwg.org/#dictdef-closeeventinit).
public sealed class CloseEventInit : EventInit- Inheritance
EventInitCloseEventInit
Constructors
| Name | Description |
|---|---|
| CloseEventInit() |
CloseEventInit()
CloseEvent.cspublic CloseEventInit()No documentation is available.
Properties
| Name | Description |
|---|---|
| Code | Gets the WebSocket connection close code. |
| Reason | Gets the WebSocket connection close reason. |
| WasClean | Gets whether the connection closed cleanly. |
Code
CloseEvent.csGets the WebSocket connection close code.
public ushort Code { get; init; }Reason
CloseEvent.csGets the WebSocket connection close reason.
public string Reason { get; init; }WasClean
CloseEvent.csGets whether the connection closed cleanly.
public bool WasClean { get; init; }