mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-21 12:16:02 +08:00
Refactor web socket usage
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Windows.UI.Core;
|
||||
using Windows.UI.Xaml;
|
||||
using MQTTnet.Core.Client;
|
||||
@@ -40,7 +41,7 @@ namespace MQTTnet.TestApp.UniversalWindows
|
||||
Password = Password.Text,
|
||||
ClientId = ClientId.Text,
|
||||
TlsOptions = { UseTls = UseTls.IsChecked == true },
|
||||
ConnectionType = MqttConnectionType.Ws
|
||||
ConnectionType = UseTcp.IsChecked == true ? MqttConnectionType.Tcp : MqttConnectionType.Ws
|
||||
};
|
||||
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user