mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-17 01:33:03 +08:00
26 lines
700 B
C#
26 lines
700 B
C#
using System.Collections.Generic;
|
|
using System.Net;
|
|
|
|
namespace MQTTnet.Client.Options
|
|
{
|
|
public class MqttClientWebSocketOptions : IMqttClientChannelOptions
|
|
{
|
|
public string Uri { get; set; }
|
|
|
|
public IDictionary<string, string> RequestHeaders { get; set; }
|
|
|
|
public ICollection<string> SubProtocols { get; set; } = new List<string> { "mqtt" };
|
|
|
|
public CookieContainer CookieContainer { get; set; }
|
|
|
|
public MqttClientWebSocketProxyOptions ProxyOptions { get; set; }
|
|
|
|
public MqttClientTlsOptions TlsOptions { get; set; } = new MqttClientTlsOptions();
|
|
|
|
public override string ToString()
|
|
{
|
|
return Uri;
|
|
}
|
|
}
|
|
}
|