Cannot set any properties of tcpOptions when with WebSocketServer. (#2118)

This commit is contained in:
老九
2024-12-02 10:24:03 +01:00
committed by GitHub
parent 6ef6b57064
commit 6bf2b4eaca
@@ -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;