Class WebSocketCloseArgs
Close arguments for the WebSocket class.
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class WebSocketCloseArgs : Dynamic
Constructors
WebSocketCloseArgs()
Creates a new instance of WebSocketCloseArgs with default values.
Declaration
public WebSocketCloseArgs()
Properties
OnComplete
Gets or sets the callback to execute when the connection is closed.
Declaration
public Action1<WebSocketCloseCompleteArgs> OnComplete { get; set; }
Property Value
Type | Description |
---|---|
Action1<WebSocketCloseCompleteArgs> |
Reason
Gets or sets the reason to send with the close frame.
Declaration
public string Reason { get; set; }
Property Value
Type | Description |
---|---|
System.String |
StatusCode
Gets or sets the status code to send with the close frame.
Declaration
public WebSocketStatusCode StatusCode { get; set; }
Property Value
Type | Description |
---|---|
WebSocketStatusCode |