Module: EventMachine::Protocols::LineProtocol

Defined in:
lib/em/protocols/line_protocol.rb

Overview

LineProtocol will parse out newline terminated strings from a receive_data stream

module Server include EM::P::LineProtocol

def receive_line(line) send_data("you said: #line") end end

Instance Method Summary collapse

Instance Method Details

#receive_line(line) ⇒ Object

Invoked with lines received over the network



24
25
26
# File 'lib/em/protocols/line_protocol.rb', line 24

def receive_line(line)
  # stub
end