MqttClientWebSocketOptions.cs 700 B

12345678910111213141516171819202122232425
  1. using System.Collections.Generic;
  2. using System.Net;
  3. namespace MQTTnet.Client.Options
  4. {
  5. public class MqttClientWebSocketOptions : IMqttClientChannelOptions
  6. {
  7. public string Uri { get; set; }
  8. public IDictionary<string, string> RequestHeaders { get; set; }
  9. public ICollection<string> SubProtocols { get; set; } = new List<string> { "mqtt" };
  10. public CookieContainer CookieContainer { get; set; }
  11. public MqttClientWebSocketProxyOptions ProxyOptions { get; set; }
  12. public MqttClientTlsOptions TlsOptions { get; set; } = new MqttClientTlsOptions();
  13. public override string ToString()
  14. {
  15. return Uri;
  16. }
  17. }
  18. }