Sha256: c7ea24d011a5717981e4f2a5200e5cfb4ce657a6aa887a95bbf792c9c3f75c76

Contents?: true

Size: 241 Bytes

Versions: 2

Compression:

Stored size: 241 Bytes

Contents

require 'rubygems'
require 'eventmachine'

class EchoClient < EventMachine::Connection
  attr_reader :response

  def receive_data(data)
    @response = data
    close_connection
  end

  def unbind
    EventMachine.stop_event_loop
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
oria-0.1.1 benchmarks/eventmachine/client.rb
oria-0.1.0 benchmarks/eventmachine/client.rb