mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-19 02:53:06 +08:00
Added support for websockets
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace MQTTnet.Core.Client
|
||||
{
|
||||
public enum ConnectionTypes
|
||||
{
|
||||
TCP,
|
||||
TLS,
|
||||
WS,
|
||||
WSS
|
||||
}
|
||||
}
|
||||
@@ -24,5 +24,7 @@ namespace MQTTnet.Core.Client
|
||||
public TimeSpan DefaultCommunicationTimeout { get; set; } = TimeSpan.FromSeconds(10);
|
||||
|
||||
public MqttProtocolVersion ProtocolVersion { get; set; } = MqttProtocolVersion.V311;
|
||||
|
||||
public ConnectionTypes ConnectionType { get; set; } = ConnectionTypes.TCP;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user