Class ClientWebSocketOptions
- Namespace
- System.Net.WebSockets
- Assembly
- System.Net.WebSockets.dll
Options to use with a ClientWebSocket object.
public class ClientWebSocketOptions : WebSocketOptions
- Inheritance
-
ClientWebSocketOptions
- Derived
- Inherited Members
- Extension Methods
Constructors
ClientWebSocketOptions()
public ClientWebSocketOptions()
Properties
Certificate
Gets or sets a collection of client side certificate. This certificate will automatically be used when connecting to a wss:// server
public X509Certificate Certificate { get; set; }
Property Value
- X509Certificate
The client side certificate.
SslProtocol
Gets or sets the TLS/SSL protocol used by the WebSocket class.
public SslProtocols SslProtocol { get; set; }
Property Value
- SslProtocols
One of the values defined in the SslProtocols enumeration. Default is Tls12.
Remarks
This property is specific to .NET nanoFramework. There is no equivalent in the .NET API.
SslVerification
Option for SSL verification. The default behavior is CertificateRequired.
public SslVerification SslVerification { get; set; }