A teeworlds 0.7 network protocol library written in ruby
Go to file
ChillerDragon 24fa105f66 Do not spawn a thread by default
This allows users to implement better multi threading than me.
Or if someone just wants to fire and forget a client that should just
use the provided hooks then not detaching takes away the effort
of keeping the program running.

Imo it is an easier and more fun problem to have:

  "My client connects fine but my other ruby code does not run"

than

  "My program just quits when I run it"
2022-11-01 15:32:47 +01:00
lib Do not spawn a thread by default 2022-11-01 15:32:47 +01:00
.gitignore Decompress packet payload 2022-10-25 20:17:07 +02:00
Gemfile Decompress packet payload 2022-10-25 20:17:07 +02:00
README.md Do not spawn a thread by default 2022-11-01 15:32:47 +01:00
sample.rb Do not spawn a thread by default 2022-11-01 15:32:47 +01:00

teeworlds-client

A teeworlds 0.7 client library written in ruby

require_relative 'lib/teeworlds-client'

client = TwClient.new(verbose: false)

client.hook_chat do |msg|
  puts "chat: #{msg}"
end

client.connect('localhost', 8303, detach: false)