WebSocketOpenInfo Class

  • Experimental (WEBPLATEXP0027)

The connection of a WebSocketStream once it is established (https://whatpr.org/websockets/48.html#dictdef-websocketopeninfo): the extensions and the subprotocol selected by the server. For the scripts, it also has the readable and the writable streams of the messages.

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

Constructors

NameDescription
WebSocketOpenInfo()

WebSocketOpenInfo()

WebSocketStream.cs
public WebSocketOpenInfo()

No documentation is available.

Properties

NameDescription
ExtensionsGets the extensions selected by the server, or the empty string.
ProtocolGets the subprotocol selected by the server, or the empty string.

Gets the extensions selected by the server, or the empty string.

public string Extensions { get; init; }

Gets the subprotocol selected by the server, or the empty string.

public string Protocol { get; init; }