arobson / rabbot

Deprecated: Please see https://github.com/Foo-Foo-MQ/foo-foo-mq
MIT License
277 stars 129 forks source link

Export Broker class in index.js #180

Closed frgtn closed 4 years ago

frgtn commented 5 years ago

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.

coveralls commented 5 years ago

Coverage Status

Coverage decreased (-0.02%) to 88.938% when pulling c566bee455b9d0ab187a83ef1d8e6db4d85eff25 on frgtn:export-broker into 80b63c08bdb32d04fd36502f24180e0c8e8f69ee on arobson:master.