#!/usr/bin/env ruby require "rubygems" require "#{File.dirname(__FILE__)}/../lib/pigato.rb" #require "pigato" worker = Pigato::Worker.new('tcp://localhost:55555', 'echo') loop do reply = nil request = worker.recv reply worker.reply request end