mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-18 10:26:11 +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":
|
case "ws":
|
||||||
WithWebSocketServer(o => o.WithUri(uri.ToString()))
|
WithWebSocketServer(o => o.WithUri(uri.ToString()))
|
||||||
.WithAddressFamily(AddressFamily.Unspecified)
|
|
||||||
.WithProtocolType(ProtocolType.Tcp)
|
|
||||||
.WithTlsOptions(o => o.UseTls(false));
|
.WithTlsOptions(o => o.UseTls(false));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "wss":
|
case "wss":
|
||||||
WithWebSocketServer(o => o.WithUri(uri.ToString()))
|
WithWebSocketServer(o => o.WithUri(uri.ToString()))
|
||||||
.WithAddressFamily(AddressFamily.Unspecified)
|
|
||||||
.WithProtocolType(ProtocolType.Tcp)
|
|
||||||
.WithTlsOptions(o => o.UseTls(true));
|
.WithTlsOptions(o => o.UseTls(true));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user