clix.raw: Give access to the verse pubsub module

Sat, 14 Nov 2020 15:42:10 +0100

author
Kim Alvefur <zash@zash.se>
date
Sat, 14 Nov 2020 15:42:10 +0100
changeset 138
1783d4226ba1
parent 137
7130d5ec115c
child 139
6909e479c56b

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,

mercurial