Skip to content

Instantly share code, notes, and snippets.

@superfeedr
Created May 5, 2010 16:52
Show Gist options
  • Save superfeedr/391081 to your computer and use it in GitHub Desktop.
Save superfeedr/391081 to your computer and use it in GitHub Desktop.
require "rubygems"
require File.join(File.dirname(__FILE__), '..', "lib", "bosh")
Bosh.logger { |message|
puts message
}
@connection = Bosh.connect("[email protected]", "xxx", "http://beta.superfeedr.com/http-bind/")
pslist = <<-EOXML
<iq to='firehoser.superfeedr.com' type='get' id='3962:list' xmlns='jabber:client'>
<pubsub xmlns='http://jabber.org/protocol/pubsub' xmlns:superfeedr='http://superfeedr.com/xmpp-pubsub-ext'>
<subscriptions jid='[email protected]/bosh_756' page='1'/>
</pubsub>
</iq>
EOXML
result = @connection.send(Nokogiri::XML::Document.parse(pslist))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment