diff --git a/client_sample.rb b/client_sample.rb index 51e440b..8c5bbe2 100755 --- a/client_sample.rb +++ b/client_sample.rb @@ -85,6 +85,6 @@ end client.connect(args[:ip], args[:port], detach: true) loop do - msg = gets.chomp + msg = $stdin.gets.chomp client.send_chat(msg) end