diff --git a/mosquitto.conf b/mosquitto.conf deleted file mode 100644 index 9f08396db..000000000 --- a/mosquitto.conf +++ /dev/null @@ -1,3 +0,0 @@ -listener 9001 -protocol websockets -allow_anonymous true \ No newline at end of file diff --git a/rumqttc/examples/websocket.rs b/rumqttc/examples/websocket.rs index d488adc3a..b09fe9671 100644 --- a/rumqttc/examples/websocket.rs +++ b/rumqttc/examples/websocket.rs @@ -11,7 +11,11 @@ async fn main() -> Result<(), Box> { pretty_env_logger::init(); // port parameter is ignored when scheme is websocket - let mut mqttoptions: MqttOptions = MqttOptions::new("clientId-1", "ws://localhost:9001", 9001); + let mut mqttoptions = MqttOptions::new( + "clientId-aSziq39Bp3", + "ws://broker.mqttdashboard.com:8000/mqtt", + 8000, + ); mqttoptions.set_transport(Transport::Ws); mqttoptions.set_keep_alive(Duration::from_secs(60));