You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It suggests using WithWebSocketServer, which assumes you know that the given URI uses WebSockets and will presumably fail if it is not a WebSockets URI:
varmqttClientOptions= mqttFactory.CreateClientOptionsBuilder()// Note: you must explicitly declare the type. Otherwise, it uses _another_ deprecated method of the same name..WithWebSocketServer((MqttClientWebSocketOptionsBuilderopt)=>{ opt.WithUri(image.GetUri());}).Build()
Alternatively, it suggests using WtihTcpServer, which can't parse any URIs:
varmqttClientOptions= mqttFactory.CreateClientOptionsBuilder().WithTcpServer((MqttClientWebSocketOptionsBuilderopt)=>{ opt.WithUri(image.GetUri());// <-- compile error, no such method.}).Build()
The text was updated successfully, but these errors were encountered:
Describe the bug
There is no valid replacement for MqttClientOptionBuilder.WithConnectionUri that will accept the same range of URIs as the original method.
Which component is your bug related to?
To Reproduce
Expected behaviour
Something that accepts an arbitrary supported URI and produces a valid MqttClientOptions for connecting to the MQTT server described by the URI.
Code example
WithConnectionUri is marked as Obsolete:
It suggests using WithWebSocketServer, which assumes you know that the given URI uses WebSockets and will presumably fail if it is not a WebSockets URI:
Alternatively, it suggests using WtihTcpServer, which can't parse any URIs:
The text was updated successfully, but these errors were encountered: