Skip to content

Instantly share code, notes, and snippets.

@lfcipriani
Created April 19, 2012 03:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lfcipriani/2418099 to your computer and use it in GitHub Desktop.
Save lfcipriani/2418099 to your computer and use it in GitHub Desktop.
function startComparison() {
// creates 2 search subscriptions and send the request to Collecta XMPP API via Strophejs
console.log("Subscribing to nodes: "+ terms[0] +" and "+ terms[1]);
connection.send(Collecta.subscribeSearchStanza(terms[0]).tree());
connection.send(Collecta.subscribeSearchStanza(terms[1]).tree());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment