Skip to content

Instantly share code, notes, and snippets.

View tmm1's full-sized avatar

Aman Gupta Karmani tmm1

View GitHub Profile
@tmm1
tmm1 / client.rb
Created October 31, 2008 21:21 — forked from bmizerany/client.rb
require 'rubygems'
require 'eventmachine'
module TapsClient
def connection_completed
p [Time.now, :connected]
send_data("hey!")
end
def receive_data(data)
#require 'rubygems'
require 'amqp/lib/mq'
EM.run do
def log(*args)
p args
end
# AMQP.logging = true
require 'rubygems'
require 'mq'
EM.run do
def log(*args)
p args
end
amq = MQ.new