Method: ApiInputActor#watch_input

Defined in:
lib/api_input_actor.rb

#watch_inputObject



31
32
33
34
35
36
37
38
39
# File 'lib/api_input_actor.rb', line 31

def watch_input
  loop do
    @client = @server.accept
    while input = @client.gets
      process_input(input.chomp)
    end
    @client.close
  end
end