Method: MessageBus::Implementation#last_id

Defined in:
lib/message_bus.rb

#last_id(channel, site_id = nil) ⇒ Integer

Get the ID of the last message published on a channel, filtered by site



506
507
508
# File 'lib/message_bus.rb', line 506

def last_id(channel, site_id = nil)
  backend_instance.last_id(encode_channel_name(channel, site_id))
end