comparison plugins/pubsub.js @ 106:c06ec02217ee

many changes
author Sonny Piers <sonny@fastmail.net>
date Tue, 26 Jun 2012 12:02:14 +0200
parents 646695bde8e9
children
comparison
equal deleted inserted replaced
105:fb50311997b5 106:c06ec02217ee
42 }); 42 });
43 } 43 }
44 return stanza + "</items></pubsub></iq>"; 44 return stanza + "</items></pubsub></iq>";
45 }, 45 },
46 affiliations: function(aTo, aNode) { 46 affiliations: function(aTo, aNode) {
47 return "<iq type='get' to='" + aTo + "'><pubsub xmlns='" + Lightstring.ns.pubsub_owner + "'><affiliations node='" + aNode + "'/></pubsub></iq>"; 47 return(
48 "<iq type='get' to='" + aTo + "'>" +
49 "<pubsub xmlns='" + Lightstring.ns.pubsub_owner + "'>" +
50 "<affiliations node='" + aNode + "'/>" +
51 "</pubsub>" +
52 "</iq>"
53 );
48 }, 54 },
49 publish: function(aTo, aNode, aItem, aId) { 55 publish: function(aTo, aNode, aItem, aId) {
50 return "<iq type='set' to='" + aTo + "'><pubsub xmlns='" + Lightstring.ns.pubsub + "'><publish node='" + aNode + "'><item id='" + aId + "'>" + aItem + "</item></publish></pubsub></iq>"; 56 return "<iq type='set' to='" + aTo + "'><pubsub xmlns='" + Lightstring.ns.pubsub + "'><publish node='" + aNode + "'><item id='" + aId + "'>" + aItem + "</item></publish></pubsub></iq>";
51 }, 57 },
52 retract: function(aTo, aNode, aItem) { 58 retract: function(aTo, aNode, aItem) {