README.md in message_bus-2.0.0.beta.1 vs README.md in message_bus-2.0.0.beta.2
- old
+ new
@@ -40,11 +40,11 @@
message_id = MessageBus.publish "/channel", "message"
# in another process / spot
MessageBus.subscribe "/channel" do |msg|
- # block called in a backgroud thread when message is recieved
+ # block called in a background thread when message is received
end
MessageBus.backlog "/channel", id
# returns all messages after the id
@@ -212,17 +212,19 @@
```
#### Puma
```ruby
# path/to/your/config/puma.rb
+require 'message_bus'
on_worker_boot do
MessageBus.after_fork
end
```
#### Unicorn
```ruby
# path/to/your/config/unicorn.rb
+require 'message_bus'
after_fork do |server, worker|
MessageBus.after_fork
end
```