# HG changeset patch # User Kim Alvefur # Date 1605364930 -3600 # Node ID 1783d4226ba16aa3d024725032a1d2a683e39a4b # Parent 7130d5ec115c0f8086775b7e08ad6ad40c25dd5c 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. diff -r 7130d5ec115c -r 1783d4226ba1 clix/raw.lua --- 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,