-
pep.
I wonder if there's a way to tell a client which is in a reconnect loop to try something else :/
-
pep.
has left the room (Stream closed by us: Replaced by new connection (conflict)) joined the room
-
pep.
programming@ is getting spammed with this atm
-
MattJ
That is the server telling it to try something else :)
-
MattJ
conflict means your resource is being used elsewhere
-
MattJ
That should be a red flag to any client, but instead it is reconnecting with the same resource
-
pep.
Ok that's what I assumed. And the client doesn't care :/
-
pep.
That's gajim, I don't know which version
-
pep.
But anyway reconnect loops also happen in other cases
-
wurstsalat
I've seen this once on a Windows device, where two Gajim instances were started in parallel (which should not be possible using the same profile). both instances tried to connect endlessly. never got to the bottom of that issue though
-
soulcaramel
I’m looking to start a hobby project of creating a JavaScript frontend xmpp chat and i found xmpp.js. For this browser integration I need to connect to a websocket server, and im wondering if all xmpp servers expose a websocket connection 🤔
-
Zash
Not all deployments but you can find out by way of https://xmpp.org/extensions/xep-0156.html
-
soulcaramel
Ok. I read through that and am trying to connect the dots in how I can use xep-0156 to determine which servers offer a websocket connection
-
soulcaramel
Ok actually i happened to find a server whose homepage advertises a websocket url
-
soulcaramel
So i guess it’s a matter of figuring out a jid for a group chat. Is that the right way to phrase it? “Jid for a group chat”?
-
singpolyma
soulcaramel: in practise you need to run xmpp-proxy or similar to get the websockets if you want to connect to servers other than your own
-
Zash
soulcaramel, given xmpp:example.com you query https://example.com/.well-known/host-meta (and/or .json), easy as that.
-
Zash
But, "jid for a group chat" is something unrelated. You connect to a server that serves user accounts, and via that connect to group chats. You only need to find the websocket endpoint for the server, not the group chat.
-
pep.
soulcaramel, if as a hobby project you're also interested in contributing in existing projects, there's a few using xmpp.js already, like https://github.com/nioc/xmpp-web :)
-
soulcaramel
Thank you all for the context and examples 🙏
-
soulcaramel
And yes pep. I will look at that too ty!