Update repl.rb to use new UDP model