# File jabber4r/protocol.rb, line 154 def send(xml, proc=nil, &block) Jabber::DEBUG && puts("SENDING:\n#{ xml.kind_of?(String) ? xml : xml.to_s }") xml = xml.to_s if not xml.kind_of? String block = proc if proc @threadBlocks[Thread.current]=block if block begin @socket << xml rescue raise JabberConnectionException.new(true, xml) end @pollCounter = 10 end