# File lib/jabber4r/protocol.rb, line 75 75: def connect 76: @socket = TCPSocket.new(@host, @port) 77: @parser = Jabber::Protocol.Parser.new(@socket, self) 78: @parserThread = Thread.new {@parser.parse} 79: @pollThread = Thread.new {poll} 80: @status = CONNECTED 81: end