Error: WebSocket is not open: readyState 2 (CLOSING) #989
Replies: 7 comments 1 reply
-
If you don't share the code we can't tell if you're doing something wrong. Can you reproduce with this https://github.com/xmppjs/xmpp.js/tree/main/packages/client#example ? |
Beta Was this translation helpful? Give feedback.
-
Well, I used the code in the first link I posted, which is the same as yours (if I'm not mistaken). |
Beta Was this translation helpful? Give feedback.
-
In general, when you need help, share as much as possible information. What is your server / version ? |
Beta Was this translation helpful? Give feedback.
-
Prosody 0.12.3 const xmpp = client({ |
Beta Was this translation helpful? Give feedback.
-
Ok try again with logs enabled using https://github.com/xmppjs/xmpp.js/tree/main/packages/debug |
Beta Was this translation helpful? Give feedback.
-
That was already with debug true, but if you wanted to see the whole output, it's here |
Beta Was this translation helpful? Give feedback.
-
I relogged in on my phone with the bot account and I got all of the past "hello world" messages but now I have a different error message in console: log Isn't it supposed to stay connected after sending the message? |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm trying to use this: https://www.npmjs.com/package/@xmpp/client
but when using wss as a connection method, I get the error in title.
I just copy pasted the whole thing and replaced the client's variables, that's it.
I know it should not be an issue with my server because another bot is connecting via the same wss without problems.
Any help?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions