Method: Blather::DSL::PubSub#node

Defined in:
lib/blather/client/dsl/pubsub.rb

#node(path, host = nil) {|Blather::Stanza::DiscoInfo| ... } ⇒ Object

Discover node information

Parameters:

  • path (#to_s)

    the node path

  • host (#to_s) (defaults to: nil)

    the PubSub host (defaults to the initialized host)

Yields:



51
52
53
54
55
# File 'lib/blather/client/dsl/pubsub.rb', line 51

def node(path, host = nil, &callback)
  stanza = Stanza::DiscoInfo.new(:get, path)
  stanza.to = send_to(host)
  request stanza, nil, callback
end