Skip to content

Instantly share code, notes, and snippets.

local bookmark = {
jid = "[email protected]";
name = "Jabber Support Room";
};
local datamanager = require "util.datamanager";
local st = require "util.stanza";
module:hook("user-registered", function(event)
local host = hosts[module.host];
module:hook("presence/full", function(event)
local origin, stanza = event.origin, event.stanza;
local node, host, resource = jid_split(stanza.attr.to);
if not node then return; end -- not to a room
local room = host.muc[node.."@"..host];
@zeen
zeen / test.rl
Created December 18, 2009 22:01
#include <stdio.h>
#include <string.h>
%%{
machine foo;
alphtype unsigned char;
action char { printf("> %c\n", *p); } Char = any* @char;
digraph foo {
rankdir=LR;
node [ shape = point ];
ENTRY;
en_98;
eof_1;
eof_2;
eof_3;
eof_4;
eof_5;
diff -r 93a94ec05ebe util/stanza.lua
--- a/util/stanza.lua Sun Oct 04 22:12:12 2009 +0500
+++ b/util/stanza.lua Sun Oct 04 23:07:05 2009 +0500
@@ -122,7 +122,7 @@
local escape_table = { ["'"] = "&apos;", ["\""] = "&quot;", ["<"] = "&lt;", [">"] = "&gt;", ["&"] = "&amp;" };
return function(str) return (s_gsub(str, "['&<>\"]", escape_table)); end
end)();
-local function _dostring(t, buf, self, xml_escape)
+local function _dostring(t, buf, self, xml_escape, parentns)
local nsid = 0;
waqas Today 7:07 PM
Hello again.
Neustradamus Today 7:07 PM
:)
Today 7:07 PM
So I spoke with mwild
Today 7:07 PM
but you are windows developper
<presence from="[email protected]/BlackBerry01ECA931" to="[email protected]/resource" xmlns:ns3="urn:ietf:params:xml:ns:xmpp-stanzas" xmlns:ns4="urn:ietf:params:xml:ns:xmpp-streams" xmlns:ns5="jabber:iq:auth" xmlns:ns6="jabber:iq:roster" xmlns:ns7="google:roster" xmlns:ns8="jabber:iq:privacy" xmlns:ns9="urn:ietf:params:xml:ns:xmpp-tls" xmlns:ns10="urn:ietf:params:xml:ns:xmpp-sasl" xmlns:ns11="urn:ietf:params:xml:ns:xmpp-bind" xmlns:ns12="vcard-temp" xmlns:ns13="vcard-temp:x:update" xmlns:ns14="jabber:x:event" xmlns:ns15="http://jabber.org/protocol/caps" xmlns:ns16="http://jabber.org/protocol/muc#user" xmlns:ns17="http://jabber.org/protocol/commands" xmlns:ns18="google:nosave" xmlns:ns19="google:subscribe" xmlns:ns20="http://jabber.org/protocol/disco#info" xmlns:ns21="http://jabber.org/protocol/disco#items" xmlns:ns22="google:shared-status" xmlns:ns23="google:jingleinfo" xmlns:ns24="jabber:x:delay" xmlns:ns25="google:domain" xmlns:ns26="http://www.google.com/session" xmlns:ns27="http://www.google.com/session/share" xml

This is a regular paragraph.

Foo

This is another regular paragraph.

Concerns about IO Data

I unfortunately missed the community conversation about the XEP up until now.

I have been working with web services (XML-RPC, SOAP, etc), and have concerns about the custom protocol in the IO Data XEP.

I'll be comparing IO Data with SOAP, and highlighting the various shortcomings. I'm not comparing it with the existing SOAP over XMPP XEP mind. I'm inclined more towards using Ad-Hoc Commands, but with SOAP payloads instead of IO Data.

The IO Data rationale for not using SOAP

-- mod_discoitems.lua
--
-- In the config, you can add:
--
-- disco_items = {
-- {"conference.jabber.org", "The Jabber.org MUC"};
-- {"muc.example.com", "An example MUC"};
-- };
--