Search Results for

    Show / Hide Table of Contents

    Class WebSocketOpenArgs

    Open arguments for the WebSocket class.

    Inheritance
    System.Object
    Serializable
    Dynamic
    WebSocketOpenArgs
    Inherited Members
    Dynamic.DynamicProperties
    Dynamic.GetDynamicValue(String)
    Dynamic.SetDynamicValue(String, Object)
    Dynamic.UnsetDynamicValue(String)
    Serializable.IsDirty
    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: FM.LiveSwitch
    Assembly: FM.LiveSwitch.dll
    Syntax
    public class WebSocketOpenArgs : Dynamic

    Constructors

    WebSocketOpenArgs()

    Creates a new instance of

    Declaration
    public WebSocketOpenArgs()

    Properties

    HandshakeTimeout

    Gets or sets the timeout for the handshake (in ms).

    Declaration
    public int HandshakeTimeout { get; set; }
    Property Value
    Type Description
    System.Int32

    Headers

    Gets or sets headers to send with the handshake request.

    Declaration
    public NameValueCollection Headers { get; set; }
    Property Value
    Type Description
    System.Collections.Specialized.NameValueCollection

    OnFailure

    Gets or sets the callback to invoke when a connection could not be established.

    Declaration
    public Action1<WebSocketOpenFailureArgs> OnFailure { get; set; }
    Property Value
    Type Description
    Action1<WebSocketOpenFailureArgs>

    OnReceive

    Gets or sets the callback to invoke when a message is received.

    Declaration
    public Action1<WebSocketReceiveArgs> OnReceive { get; set; }
    Property Value
    Type Description
    Action1<WebSocketReceiveArgs>

    OnRequestCreated

    Gets or sets the callback to invoke before the handshake request is sent.

    Declaration
    public Action1<HttpRequestCreatedArgs> OnRequestCreated { get; set; }
    Property Value
    Type Description
    Action1<HttpRequestCreatedArgs>

    OnResponseReceived

    Gets or sets the callback to invoke after the handshake response is received.

    Declaration
    public Action1<HttpResponseReceivedArgs> OnResponseReceived { get; set; }
    Property Value
    Type Description
    Action1<HttpResponseReceivedArgs>

    OnStreamFailure

    Gets or sets the callback to invoke when a successful connection breaks down.

    Declaration
    public Action1<WebSocketStreamFailureArgs> OnStreamFailure { get; set; }
    Property Value
    Type Description
    Action1<WebSocketStreamFailureArgs>

    OnSuccess

    Gets or sets the callback to invoke when a successful connection has been established.

    Declaration
    public Action1<WebSocketOpenSuccessArgs> OnSuccess { get; set; }
    Property Value
    Type Description
    Action1<WebSocketOpenSuccessArgs>

    Sender

    Gets or sets the sender of the request.

    Declaration
    public object Sender { get; set; }
    Property Value
    Type Description
    System.Object

    StreamTimeout

    Gets or sets the timeout for the stream (in ms).

    Declaration
    public int StreamTimeout { get; set; }
    Property Value
    Type Description
    System.Int32
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.14.6