EventMachine-compatible API on top of Netty - for JRuby
Pull request Compare This branch is 2 commits behind jordansissel:master.
Latest commit 993c3a9 May 26, 2011 @jordansissel jordansissel - Add EM::open_datagram_socket stub
- Add EventMachine::Connection#post_init support
- Pass args and block to EM::Connection initializer
Failed to load latest commit information.
examples - Add examples Apr 12, 2011
lib/netty-eventmachine - Add EM::open_datagram_socket stub May 27, 2011
README.md - update readme Apr 11, 2011


Netty-backed EventMachien API

The goal of this project to provide an EventMachine model using Netty as the implementation. Overall, I aim to be API compatible with EventMachine as-is with long-term goal of replacing the current jruby eventmachine implementation.


require "netty-3.2.4.Final.jar"
$: << "lib"
require "netty-eventmachine/em_api.rb"

class Conn < EventMachine::Connection
  def receive_data(data)
    p :received => data

EventMachine.run do
  EventMachine.start_server("", 3333, Conn)