jdev - 2024-03-24

  1. viyan

    I have a playerObj like this, playerObj = {player: {0: 3, 1: 4, 4: 2}}. I want to send xml to the server based on this, playerObj. How to send like this? this.xmpp.send(xml("message", { from: this.jid, to: gameID, type: "chat" }, xml("turn", { xmlns: "http://jabber.org/protocol/mug#user" }, xml("player", { // send playerIndex and playerScoreValue based on the object xmlns: this.standard }))));

  2. jonas’

    I don't know if your library has a mechanisms to generically transform data into XML, but if it does not, maybe it has support for https://xmpp.org/extensions/xep-0335.html ?

  3. Fishbowler

    > i see no added value, if the gateway tells me, btw i split your message into 5, because the protocol has some size limit I was all on board with the "representation of truth" argument, but this has merit too. What if there were interop with >1 external systems? You might not be able to represent the truth of both systems, representing 'local truth' (ew, that needs a better term) makes sense.

  4. Guus

    viyan: https://xmpp.org/extensions/xep-0335.html

  5. Schimon

    I have made some tests against Movim and I realized that each JID can have a PubSub service node.

  6. Schimon

    Is it also possible for an MUC JID to have a PubSub service node?

  7. goffi

    Schimon: yes it's PEP (XEP-0163)

  8. Schimon

    Interesting. Thank you.

  9. Schimon

    I did not find a visual indication to it with Psi.

  10. Schimon

    Then it is possible to add a PubSub feed to a groupchat and have it attached to the groupchat as a news feeds, provided client supports PubSub as Libervia and Movim.

  11. singpolyma

    Yes, any jid can have as many pubsub nodes as you like, so long as the server supports it

  12. singpolyma

    The protocol certainly supports it