message-bus-client
Advanced tools
Comparing version 4.2.0 to 4.3.0
{ | ||
"name": "message-bus-client", | ||
"version": "4.2.0", | ||
"version": "4.3.0", | ||
"description": "A message bus client in Javascript", | ||
@@ -5,0 +5,0 @@ "main": "assets/message-bus.js", |
@@ -158,3 +158,3 @@ # MessageBus | ||
In certain cases, it is undesirable for message_bus to start up on application start, for example in a Rails application during the `db:create` rake task when using the Postgres backend (which will error trying to connect to the non-existent database to subscribe). You can invoke `MessageBus.off` before the middleware chain is loaded in order to prevent subscriptions and publications from happening; in a Rails app you might do this in an initializer based on some environment variable or some other conditional means. | ||
In certain cases, it is undesirable for message_bus to start up on application start, for example in a Rails application during the `db:create` rake task when using the Postgres backend (which will error trying to connect to the non-existent database to subscribe). You can invoke `MessageBus.off` before the middleware chain is loaded in order to prevent subscriptions and publications from happening; in a Rails app you might do this in an initializer based on some environment variable or some other conditional means. If you want to just disable subscribing to the bus but want to continue to allow publications to be made, you can do `MessageBus.off(disable_publish: false)`. | ||
@@ -161,0 +161,0 @@ ### Debugging |
47902