WebSocketStreamOptions Class

  • Experimental (WEBPLATEXP0027)

The options of a WebSocketStream (https://whatpr.org/websockets/48.html#dictdef-websocketstreamoptions).

[Experimental("WEBPLATEXP0027", UrlFormat = "https://github.com/meziantou/Meziantou.Framework/blob/main/src/Meziantou.Framework.WebPlatform/docs/experimental-apis.md#{0}")]
public sealed class WebSocketStreamOptions

Constructors

NameDescription
WebSocketStreamOptions()

WebSocketStreamOptions()

public WebSocketStreamOptions()

No documentation is available.

Properties

NameDescription
ProtocolsGets the subprotocols the server can select, or null (none).
SignalGets the signal that aborts the opening handshake, or null.

Gets the subprotocols the server can select, or null (none).

public IReadOnlyList<string>? Protocols { get; init; }

Gets the signal that aborts the opening handshake, or null.

public AbortSignal? Signal { get; init; }