Skip to main content

SimpleWebSocketHttpRequest Class

Definition

Assembly:Avalonia.DesignerSupport
Package:Avalonia
public class SimpleWebSocketHttpRequest

Inheritance: object -> SimpleWebSocketHttpRequest

Implements: IDisposable

Constructors

NameDescription
SimpleWebSocketHttpRequestNo 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

NameDescription
AcceptWebSocketNo summary available.
DisposeNo summary available.
RespondAsyncNo 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

NameDescription
HeadersNo summary available.
IsWebsocketRequestNo summary available.
PathNo summary available.
WebSocketProtocolsNo 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; }