class TS3Query::ClientConnection
Private Instance Methods
connect(params)
click to toggle source
# File lib/ts3query/client_connection.rb, line 7 def connect(params) begin @connection = Net::Telnet::new('Host' => params[:address], 'Port' => params[:port]) @connection.waitfor('Match' => /TS3 Client\n(.*)\n/, 'Timeout' => 3) rescue raise(ConnectionRefused, 'client not available') end end