v1.4-non-rails/app/consumers/pong/ping_consumer.rb
# We increase the pings counter and respond
We increase the pings counter and respond
We increase the pings counter and respond
def consume
      counter = params_batch.last.payload['counter'] + 1
      respond_with(counter: counter)
    end
def consume counter = params_batch . last . payload [ 'counter' ] + 1 respond_with ( counter : counter ) end
We increase the pings counter and respond
We increase the pings counter and respond
# The initial ping needs to be triggered via the rake task