Skip to content

Commit

Permalink
Add interactive chat to sample client
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Jun 18, 2024
1 parent 7e45bbe commit ba7bfc6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client_sample.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,9 @@ def show_help
end

# connect and detach thread
client.connect(args[:ip], args[:port], detach: false)
client.connect(args[:ip], args[:port], detach: true)

loop do
msg = gets.chomp
client.send_chat(msg)
end

0 comments on commit ba7bfc6

Please sign in to comment.