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 WebSocketOpenInfoConstructors
| Name | Description |
|---|---|
| WebSocketOpenInfo() |
WebSocketOpenInfo()
WebSocketStream.cspublic WebSocketOpenInfo()No documentation is available.
Properties
| Name | Description |
|---|---|
| Extensions | Gets the extensions selected by the server, or the empty string. |
| Protocol | Gets the subprotocol selected by the server, or the empty string. |
Extensions
WebSocketStream.csGets the extensions selected by the server, or the empty string.
public string Extensions { get; init; }Protocol
WebSocketStream.csGets the subprotocol selected by the server, or the empty string.
public string Protocol { get; init; }