Method: MessageBus::Implementation#last_message
- Defined in:
- lib/message_bus.rb
#last_message(channel) ⇒ MessageBus::Message
Get the last message published on a channel
527 528 529 530 531 532 533 534 |
# File 'lib/message_bus.rb', line 527 def (channel) if last_id = last_id(channel) = backlog(channel, last_id - 1) if [0] end end end |