complete http pubsub.rb