Class WebSocketOpenArgs
Open arguments for the WebSocket class.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 ManagedConcurrentDictionary<string, string> Headers { get; set; }
Property Value
Type | Description |
---|---|
ManagedConcurrentDictionary<System.String, System.String> |
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 |