SimpleWebSocketHttpRequest Class
Definition
public class SimpleWebSocketHttpRequest
Constructors
| Name | Description |
|---|---|
| SimpleWebSocketHttpRequest | No summary available. |
SimpleWebSocketHttpRequest Constructor
public SimpleWebSocketHttpRequest(System.Net.Sockets.NetworkStream stream, string path, System.Collections.Generic.Dictionary<string, string> headers)
Parameters
stream System.Net.Sockets.NetworkStream
path string
headers System.Collections.Generic.Dictionary<string, string>
Methods
| Name | Description |
|---|---|
| AcceptWebSocket | No summary available. |
| Dispose | No summary available. |
| RespondAsync | No summary available. |
AcceptWebSocket Method
public System.Threading.Tasks.Task<Avalonia.DesignerSupport.Remote.HtmlTransport.SimpleWebSocket> AcceptWebSocket(string protocol)
Parameters
protocol string
Returns
System.Threading.Tasks.Task<Avalonia.DesignerSupport.Remote.HtmlTransport.SimpleWebSocket>
Dispose Method
public void Dispose()
RespondAsync Method
public System.Threading.Tasks.Task RespondAsync(int code, byte[] data, string contentType)
Parameters
code int
data byte[]
contentType string
Returns
System.Threading.Tasks.Task
Properties
| Name | Description |
|---|---|
| Headers | No summary available. |
| IsWebsocketRequest | No summary available. |
| Path | No summary available. |
| WebSocketProtocols | No summary available. |
Headers Property
public System.Collections.Generic.Dictionary<string, string> Headers { get; set; }
IsWebsocketRequest Property
public bool IsWebsocketRequest { get; set; }
Path Property
public string Path { get; set; }
WebSocketProtocols Property
public System.Collections.Generic.IReadOnlyList<string> WebSocketProtocols { get; set; }