# File protocol.rb, line 157
      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