Software /
code /
clix
Diff
clix/raw.lua @ 138:1783d4226ba1
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.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 14 Nov 2020 15:42:10 +0100 |
parent | 137:7130d5ec115c |
child | 149:014e73c329c5 |
line wrap: on
line diff
--- 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,