It would be nice to be able to create multiple brokers in the same Node
process, eg. in unit tests. Current implementation prevents this by only
exporting a global Broker instance.
Exporting the Broker class allows it to be instantiated multiple times.
Coverage decreased (-0.02%) to 88.938% when pulling c566bee455b9d0ab187a83ef1d8e6db4d85eff25 on frgtn:export-broker into 80b63c08bdb32d04fd36502f24180e0c8e8f69ee on arobson:master.
It would be nice to be able to create multiple brokers in the same Node process, eg. in unit tests. Current implementation prevents this by only exporting a global Broker instance.
Exporting the Broker class allows it to be instantiated multiple times.