Class WSCloseReason
Represents the details about why the WebSocket connection was closed or could not be established.
Inheritance
System.Object
WSCloseReason
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Neodynamic.Blazor
Assembly: cs.temp.dll.dll
Syntax
public class WSCloseReason
Properties
Code
The WebSocket close code (e.g. 1006 for an abnormal closure, 403 when blocked). 0 when the connection was refused by the library itself (e.g. SslModeMismatch).
Declaration
public int Code { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Detail
A human readable description of the failure, when available.
Declaration
public string Detail { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
WasConnected
Whether the connection had been established before being closed.
Declaration
public bool WasConnected { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |