Class WebSocketWebRequestTransfer
Defines methods for transferring messages using the WebSocket protocol.
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class WebSocketWebRequestTransfer : WebSocketTransfer
Constructors
WebSocketWebRequestTransfer(String)
Creates a new instance of WebSocketWebRequestTransfer.
Declaration
public WebSocketWebRequestTransfer(string url)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | The URL. |
Methods
Open(NameValueCollection)
Opens the WebSocket connection.
Declaration
public override void Open(NameValueCollection headers)
Parameters
Type | Name | Description |
---|---|---|
NameValueCollection | headers |
Overrides
Send(HttpRequestArgs)
Sends a request synchronously.
Declaration
public override HttpResponseArgs Send(HttpRequestArgs requestArgs)
Parameters
Type | Name | Description |
---|---|---|
HttpRequestArgs | requestArgs | The request parameters. |
Returns
Type | Description |
---|---|
HttpResponseArgs | The response parameters. |
Overrides
SendAsync(HttpRequestArgs, Action1<HttpResponseArgs>)
Sends a request asynchronously.
Declaration
public override void SendAsync(HttpRequestArgs requestArgs, Action1<HttpResponseArgs> callback)
Parameters
Type | Name | Description |
---|---|---|
HttpRequestArgs | requestArgs | The request parameters. |
Action1<HttpResponseArgs> | callback | The callback to execute with the resulting response. |
Overrides
Shutdown()
Releases any resources and shuts down.
Declaration
public override void Shutdown()