Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilayat-Ali committed Oct 6, 2023
1 parent 1483d1e commit a20ed3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 0 additions & 3 deletions mosquitto.conf

This file was deleted.

6 changes: 5 additions & 1 deletion rumqttc/examples/websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ async fn main() -> Result<(), Box<dyn Error>> {
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));

Expand Down

0 comments on commit a20ed3a

Please sign in to comment.