Class SocketClosedEventArgs
Arguments for Disconnected event.
Inherited Members
Namespace: TehGM.Wolfringo.Socket
Assembly: Wolfringo.Core.dll
Syntax
[Serializable]
public class SocketClosedEventArgs : EventArgs
Constructors
| Improve this Doc View SourceSocketClosedEventArgs(WebSocketCloseStatus, String)
Creates new event args instance.
Declaration
public SocketClosedEventArgs(WebSocketCloseStatus closeStatus, string closeMessage)
Parameters
Type | Name | Description |
---|---|---|
WebSocketCloseStatus | closeStatus | Indicates the reason why the remote endpoint initiated the close handshake. |
String | closeMessage | The optional description that describes why the close handshake has been initiated by the remote endpoint. |
SocketClosedEventArgs(WebSocketCloseStatus, String, Exception)
Creates new event args instance.
Declaration
public SocketClosedEventArgs(WebSocketCloseStatus closeStatus, string closeMessage, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
WebSocketCloseStatus | closeStatus | Indicates the reason why the remote endpoint initiated the close handshake. |
String | closeMessage | The optional description that describes why the close handshake has been initiated by the remote endpoint. |
Exception | exception | Exception that caused socket closing. |
Properties
| Improve this Doc View SourceCloseMessage
The optional description that describes why the close handshake has been initiated by the remote endpoint.
Declaration
public string CloseMessage { get; }
Property Value
Type | Description |
---|---|
String |
CloseStatus
Indicates the reason why the remote endpoint initiated the close handshake.
Declaration
public WebSocketCloseStatus CloseStatus { get; }
Property Value
Type | Description |
---|---|
WebSocketCloseStatus |
Exception
Exception that caused socket closing.
Declaration
public Exception Exception { get; }
Property Value
Type | Description |
---|---|
Exception |