teeworlds_network/examples/02_packet_debugger.rb

11 lines
245 B
Ruby
Executable file

#!/usr/bin/env ruby
# Prints out all network traffic
require_relative '../lib/teeworlds-client'
client = TeeworldsClient.new(verbose: true)
# connect to localhost and block the current thread
client.connect('localhost', 8303, detach: false)