Skip to content

Instantly share code, notes, and snippets.

@mgwedd
Last active July 24, 2019 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgwedd/c45c3ff389fb18c81b56f9ca1b6f685a to your computer and use it in GitHub Desktop.
Save mgwedd/c45c3ff389fb18c81b56f9ca1b6f685a to your computer and use it in GitHub Desktop.
// Use WebSocket connection.
var options = new MqttClientOptionsBuilder()
.WithWebSocketServer("broker.hivemq.com:8000/mqtt")
.Build();
await client.ConnectAsync(options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment