teeworlds_network/examples/02_packet_debugger.rb

11 lines
245 B
Ruby
Raw Normal View History

2022-11-05 10:07:16 +00:00
#!/usr/bin/env ruby
2022-11-04 15:57:50 +00:00
# Prints out all network traffic
2022-11-05 10:07:16 +00:00
require_relative '../lib/teeworlds-client'
2022-11-04 15:57:50 +00:00
client = TeeworldsClient.new(verbose: true)
# connect to localhost and block the current thread
2022-11-05 10:07:16 +00:00
client.connect('localhost', 8303, detach: false)