Closed turanmehmetb closed 4 years ago
Its not related to xmpp.js or react native.
Can you access http://ec2-117-125-32-231.me-south-1.compute.amazonaws.com:5280/xmpp-websocket with your browser? No. You need to find out why. Maybe you didn't restart prosody after enabling websocket or your firewall is not configured to allow 5280
Hi im trying to connect my app with my prosody server which is running in an aws ec2 instance. I have enabled mod_websocket in prosody, my prosody version is 0.11.3 and im trying to connect with something like this:
const xmpp = client({ service: 'ws://ec2-117-125-32-231.me-south-1.compute.amazonaws.com:5280/xmpp-websocket', domain: '', resource: '', username: 'mbt@ec2-117-125-32-231.me-south-1.compute.amazonaws.com', password: '12345678', });
but i get the websocket econnerror, can someone help me with it? thanks!