Class WebSocketOpenArgs
Open arguments for the Web
Inherited Members
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. |
Headers
Gets or sets headers to send with the handshake request.
Declaration
public ManagedConcurrentDictionary<string, string> Headers { get; set; }
Property Value
Type | Description |
---|---|
Managed |
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<Web |
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<Web |
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<Http |
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<Http |
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<Web |
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<Web |
Sender
Gets or sets the sender of the request.
Declaration
public object Sender { get; set; }
Property Value
Type | Description |
---|---|
System. |
StreamTimeout
Gets or sets the timeout for the stream (in ms).
Declaration
public int StreamTimeout { get; set; }
Property Value
Type | Description |
---|---|
System. |