Software /
code /
clix
Changeset
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 |
parents | 137:7130d5ec115c |
children | 139:6909e479c56b |
files | clix/raw.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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,