Sat, 14 Nov 2020 15:42:10 +0100
clix.raw: Give access to the verse pubsub module
It has a pretty decent API, common operations are simple enough to use
in clix, but things involving callbacks is messy.
clix/raw.lua | file | annotate | diff | comparison | revisions |
--- a/clix/raw.lua Sat Nov 14 15:39:57 2020 +0100 +++ b/clix/raw.lua Sat Nov 14 15:42:10 2020 +0100 @@ -65,6 +65,9 @@ vcard = function(who) return verse.iq{ type="get", to=who}:tag("vCard",{xmlns="vcard-temp"}); end, + pubsub = function(...) + return conn.pubsub(...); + end, disco = function (to, node) return verse.iq{ type="get", to=to }:tag("query", { xmlns="http://jabber.org/protocol/disco#info", node = node }); end,