Class | Jabber::Bytestreams::IBBInitiator |
In: |
lib/xmpp4r/bytestreams/helper/ibb/initiator.rb
|
Parent: | IBB |
block_size | [RW] | You may set the block-size before open |
Open the stream to the peer, waits for successful result
May throw ErrorException
# File lib/xmpp4r/bytestreams/helper/ibb/initiator.rb, line 18 18: def open 19: iq = Iq.new(:set, @peer_jid) 20: open = iq.add REXML::Element.new('open') 21: open.add_namespace IBB::NS_IBB 22: open.attributes['sid'] = @session_id 23: open.attributes['block-size'] = @block_size 24: 25: @stream.send_with_id(iq) { |answer| 26: answer.type == :result 27: } 28: 29: activate 30: end