Pubsub not delivering messages

I'm building a simple web tool with the lattest Strophe.js to handle pubsub messages. I can create nodes, subscribe, see forms... but when I publish (with ok response from server) messages are never forwarded to subscribed clients. Or I do not know how to see them. I'm using a log console to see all server activity and adding js handlers with no luck.

I'm trying with rroemhild/docker-ejabberd It has BOSH, pubsub, admin... and seems to be very complete. Have also tried with ejabberd on a local ubuntu with the same results.

This is what I get from a correct published message.

<body xmlns='http://jabber.org/protocol/httpbind'>
    <iq xmlns='jabber:client' from='pubsub.example.com' to='guillem@example.com/13675173711451438137658982' id='5:sendIQ' type='result'>
        <pubsub xmlns='http://jabber.org/protocol/pubsub'>
            <publish node='4193886472'>
                <item id='5AB6AFAB19CFD'/>
            </publish>
        </pubsub>
    </iq>
</body>

But nothing is delivered to clients. If I query for subscriptions

<body xmlns='http://jabber.org/protocol/httpbind'>
    <iq xmlns='jabber:client' from='pubsub.example.com' to='guillem@example.com/13675173711451438137658982' id='3:sendIQ' type='result'>
        <pubsub xmlns='http://jabber.org/protocol/pubsub#owner'>
            <subscriptions node='4193886472'>
                <subscription jid='admin@example.com' subscription='subscribed' subid='5AB6AF973AC7E'/>
            </subscriptions>
        </pubsub>
    </iq>
</body>

Any idea about what is going wrong? I would appreciate any help as I'm stucked with this for several days...

If you wanna see the full code is here https://github.com/guillemsola/ejabberd-PoC
It can manage MUC rooms and (still) not pubsub :(

FYI I have also published this question in stackoverflow site

http://stackoverflow.com/questions/34527337/xmpp-pubsub-not-delivering-m...

Regards

After spending some hours

After spending some hours I've realised that messages are not delivered until a positive presence it's not send by the client to the server.

<presence xmlns='jabber:client'>
<priority>1</priority>
</presence>
Syndicate content