Method: MessageBus::Backends::Memory#last_id

Defined in:
lib/message_bus/backends/memory.rb

#last_id(channel) ⇒ Integer

Get the ID of the last message published on a channel

Parameters:

  • channel (String)

    the name of the channel in question

Returns:

  • (Integer)

    the channel-specific ID of the last message published to the given channel



239
240
241
# File 'lib/message_bus/backends/memory.rb', line 239

def last_id(channel)
  client.max_id(channel)
end