EM::Connection
# File lib/em-hiredis/connection.rb, line 18 def connection_completed @reader = ::Hiredis::Reader.new emit(:connected) end
# File lib/em-hiredis/connection.rb, line 23 def receive_data(data) @reader.feed(data) until (reply = @reader.gets) == false emit(:message, reply) end end
# File lib/em-hiredis/connection.rb, line 13 def reconnect(host, port) super @host, @port = host, port end
Generated with the Darkfish Rdoc Generator 2.