Permalink
Browse files

Example updated.

  • Loading branch information...
1 parent 43a70ff commit 65e2cbb43e8223358dd89dd9a92975b125520590 tailor committed Feb 12, 2008
Showing with 5 additions and 1 deletion.
  1. +5 −1 doc/lc_example.rb
View
@@ -14,15 +14,19 @@
check that the value of $x is exactly what you set it to, and that you're
working inside this process, but there's not much to do inside the example
script. :)
+
EOF
port = ARGV.first.to_i
port = port.zero? ? 3333 : port
$x = ARGV[1]
-lc = LiveConsole.new port
+lc = LiveConsole.new :socket, :port => port
lc.run
+puts "My PID is #{Process.pid}, " \
+ "I'm running on port #{port}, and $x = #{$x.inspect}"
+
oldx = $x
loop {
if $x != oldx

0 comments on commit 65e2cbb

Please sign in to comment.