Method: MessageBus::Backends::Postgres#last_id

Defined in:
lib/message_bus/backends/postgres.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



294
295
296
# File 'lib/message_bus/backends/postgres.rb', line 294

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