mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-15 17:00:03 +08:00
Cannot set any properties of tcpOptions when with WebSocketServer. (#2118)
This commit is contained in:
@@ -153,15 +153,11 @@ public sealed class MqttClientOptionsBuilder
|
||||
|
||||
case "ws":
|
||||
WithWebSocketServer(o => o.WithUri(uri.ToString()))
|
||||
.WithAddressFamily(AddressFamily.Unspecified)
|
||||
.WithProtocolType(ProtocolType.Tcp)
|
||||
.WithTlsOptions(o => o.UseTls(false));
|
||||
break;
|
||||
|
||||
case "wss":
|
||||
WithWebSocketServer(o => o.WithUri(uri.ToString()))
|
||||
.WithAddressFamily(AddressFamily.Unspecified)
|
||||
.WithProtocolType(ProtocolType.Tcp)
|
||||
.WithTlsOptions(o => o.UseTls(true));
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user