Skip to content

Instantly share code, notes, and snippets.

@pedrocganem
Last active October 27, 2020 17:36
Show Gist options
  • Save pedrocganem/19d696e10ca8b74e865d04b42861fd6c to your computer and use it in GitHub Desktop.
Save pedrocganem/19d696e10ca8b74e865d04b42861fd6c to your computer and use it in GitHub Desktop.
import 'package:mqtt_client/mqtt_client.dart';
import 'package:mqtt_client/mqtt_server_client.dart';
class Broker {
static final Broker _singleton = Broker._internal();
factory Broker() {
return _singleton;
}
Broker._internal();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment