Table of Contents

Delegate WebSocketConnector

Namespace
OpenShell.Edge
Assembly
OpenShell.Sdk.dll

Opens the WebSocket leg of an EdgeTunnelProxy connection.

public delegate ValueTask<WebSocket> WebSocketConnector(Uri url, IReadOnlyDictionary<string, string> headers, CancellationToken cancellationToken)

Parameters

url Uri

The ws:// or wss:// tunnel URL.

headers IReadOnlyDictionary<string, string>

Edge authentication headers to send on the upgrade request.

cancellationToken CancellationToken

Cancels the connect.

Returns

ValueTask<WebSocket>
Opens the WebSocket leg of an connection.