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 WebSocketStreamOptionsConstructors
| Name | Description |
|---|---|
| WebSocketStreamOptions() |
WebSocketStreamOptions()
public WebSocketStreamOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Protocols | Gets the subprotocols the server can select, or null (none). |
| Signal | Gets the signal that aborts the opening handshake, or null. |
Protocols
WebSocketStream.csGets the subprotocols the server can select, or null (none).
public IReadOnlyList<string>? Protocols { get; init; }Signal
WebSocketStream.csGets the signal that aborts the opening handshake, or null.
public AbortSignal? Signal { get; init; }