Project

General

Profile

Using Pubsub to implement groups like Whatsapp.

Ralph Hammerfell
Added about 3 years ago

We're trying to use Pubsub to implement groups like those in Whatsapp, without the user having to go into the room, etc.. We saw on a previous forum post here, as well as on stackoverflow, that it's recommend using it instead of MUC.

So far, things have been working great. We can create a node, set publish to all, send, receive items, etc..

The problem is, when a user publishes to a node, no user information is sent. Is there any way to do that? We thought of perhaps creating a normal XMPP message, and then sending it in the payload, but that'd require parsing it back from the payload.

Is there any alternative solution? For example modifying the pubsub plugin to include sender information? Or is that not recommended?


Replies (1)

Added by Wojciech Kapcia TigaseTeam about 3 years ago

Ralph Hammerfell wrote:

Is there any alternative solution? For example modifying the pubsub plugin to include sender information? Or is that not recommended?

If you care for both notifications with or without payload then the best option would be to modify appropriate PubSub modules to include publisher info in the <item/> element for example.

    (1-1/1)