Contains the event data associated with a WebSocket.OnClose event.
See Also: Inherited members from MessageEventArgs.
[read-only] | Code | ushort . Gets the status code for closure. |
[read-only] | Data | string . Gets the received data as a string. (Inherited from MessageEventArgs.) |
[read-only] | RawData | byte[]. Gets the received data as an array of byte. (Inherited from MessageEventArgs.) |
[read-only] | Reason | string . Gets the reason for closure. |
[read-only] | Type | Opcode . Gets the type of the received data. (Inherited from MessageEventArgs.) |
[read-only] | WasClean | bool . Indicates whether the WebSocket connection closed cleanly. |
Gets the status code for closure.
Syntax
public ushort Code { get; }Value
A ushort that contains a status code for closure.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp
Assembly: websocket-sharp (in websocket-sharp.dll)
Gets the reason for closure.
Syntax
public string Reason { get; }Value
A string that contains a reason for closure.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp
Assembly: websocket-sharp (in websocket-sharp.dll)
Indicates whether the WebSocket connection closed cleanly.
Syntax
public bool WasClean { get; }Value
true if the WebSocket connection closed cleanly; otherwise, false.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: WebSocketSharp
Assembly: websocket-sharp (in websocket-sharp.dll)