Method: Jabber::Roster::Helper#add_query_callback

Defined in:
lib/vendor/xmpp4r/lib/xmpp4r/roster/helper/roster.rb

#add_query_callback(prio = 0, ref = nil, &block) ⇒ Object

Add a callback to be called when a query has been processed

Because update callbacks are called for each roster item, this may be appropriate to notify that anything has updated.

Arguments for callback block: The received <iq/> stanza



89
90
91
# File 'lib/vendor/xmpp4r/lib/xmpp4r/roster/helper/roster.rb', line 89

def add_query_callback(prio = 0, ref = nil, &block)
  @query_cbs.add(prio, ref, block)
end