Wolfringo Wolfringo
Wolfringo Wolfringo
Wolfringo (c) 2020 TehGM
DocFX, DiscordFX theme.
Search Results for

    Class SocketClosedEventArgs

    Arguments for Disconnected event.

    Inheritance
    System.Object
    System.EventArgs
    SocketClosedEventArgs
    Inherited Members
    System.EventArgs.Empty
    Namespace: TehGM.Wolfringo.Socket
    Assembly: Wolfringo.Core.dll
    Syntax
    [Serializable]
    public class SocketClosedEventArgs : EventArgs

    Constructors

    | Improve this Doc View Source

    SocketClosedEventArgs(WebSocketCloseStatus, String)

    Creates new event args instance.

    Declaration
    public SocketClosedEventArgs(WebSocketCloseStatus closeStatus, string closeMessage)
    Parameters
    Type Name Description
    System.Net.WebSockets.WebSocketCloseStatus closeStatus

    Indicates the reason why the remote endpoint initiated the close handshake.

    System.String closeMessage

    The optional description that describes why the close handshake has been initiated by the remote endpoint.

    | Improve this Doc View Source

    SocketClosedEventArgs(WebSocketCloseStatus, String, Exception)

    Creates new event args instance.

    Declaration
    public SocketClosedEventArgs(WebSocketCloseStatus closeStatus, string closeMessage, Exception exception)
    Parameters
    Type Name Description
    System.Net.WebSockets.WebSocketCloseStatus closeStatus

    Indicates the reason why the remote endpoint initiated the close handshake.

    System.String closeMessage

    The optional description that describes why the close handshake has been initiated by the remote endpoint.

    System.Exception exception

    Exception that caused socket closing.

    Properties

    | Improve this Doc View Source

    CloseMessage

    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
    System.String
    | Improve this Doc View Source

    CloseStatus

    Indicates the reason why the remote endpoint initiated the close handshake.

    Declaration
    public WebSocketCloseStatus CloseStatus { get; }
    Property Value
    Type Description
    System.Net.WebSockets.WebSocketCloseStatus
    | Improve this Doc View Source

    Exception

    Exception that caused socket closing.

    Declaration
    public Exception Exception { get; }
    Property Value
    Type Description
    System.Exception