Bugs: Browse | Submit New | Admin

[#28705] Pure Ruby example - undefined method EventMachine::run

Date:
2010-11-10 20:28
Priority:
3
Submitted By:
John Thornton (johnny_t)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Pure Ruby example - undefined method EventMachine::run

Detailed description
Trying to run this example currently fails:

require 'em/pure_ruby'
module EchoServer
  def receive_data(data)
    send_data(data)
  end
end

EventMachine::run{
  EventMachine::start_server "0.0.0.0", 8081, EchoServer
}


This results in:

NoMethodError: undefined method `run' for EventMachine:Module

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item