Comments (8)
Hi,
Check that the BOSH server is responding because sometimes it doesn't work (especially if you're using meta jack's).
I tested the connection in Somalia using 2G - and it worked fine. (Strophe.js + Bosh), so it should work on 3G.
from strophejs.
@isfarax hi, what kind of response messages do you mean? Same server works over wifi with same files and works with one jabber mobile app over mobile network. When connect via mobile network, connection status change to "connecting" and console not receive any more messages.
Can I see on server that messages? Could you tell me where/how?
from strophejs.
Other info: The first POST request status is always "pending" on chrome bug review until it set to "failed".
from strophejs.
is your BOSH server working? and is it being timed out?
from strophejs.
It is responding fine for me.
from strophejs.
@isfarax @metajack I was made changes in client side and, if I use @metajack BOSH server to login connection is OK. This tells me that the server that I use has any bad configuration (buy works on wifi well :S). Server is OpenFire instead of Ejabberd (metajack server) but I think that it isn't problem.
Another thing I see, @metajack uses 5280 port to connect and the server that I has uses 7070 port (Normaly port?) Is this an important thing for mobile network connection? I don't know companies ports limitations (sounds like conspiracy hehe).
PD: Chat server and bosh server are the same.
from strophejs.
a BOSH is like middleman that allows your client/app to communicate with the XMPP server over HTTP.
there could be many reasons why your BOSH server is not responding - but at least you know where the issue is coming from.
i recommend you use the default ports (5280) and also ejabbed server because you can turn on the built-in BOSH server.
also, because 3G connections are not always reliable, you should set the timeout to a higher value, maybe a minute before the connection closes. what could be happening is that the connection is not getting timed-out.
On another note, @metajack could you please make an in-depth tutorial on how you set up your BOSH server (maybe a video). i want to also thank you for all the hard work you have done on strophe.js.
from strophejs.
Connection seems to work under mobile network since server changes. I wasn't understand that only 3G connections fails.
Thanks to @isfarax @metajack!!!
from strophejs.
Related Issues (20)
- React Native / iOS WebSocket onopen not callback,why? HOT 2
- [Feature] Have a "real" ESM support HOT 3
- Broken dependencies in React HOT 5
- Report the "from" attribute of the opening <open /> tag HOT 1
- addHandler 'stream:error' can not receive message HOT 2
- XEP-0237 is Obsolete, It is preferable to use it in production system, If not then is there any alternate available? HOT 5
- Uncaught TypeError: (o, strophe_WEBPACK_IMPORT_MODULE_1.$msg) is not a function HOT 1
- Websocket disconnect broken
- strophe > 1.5.0 no longer works in React Native HOT 4
- TypeError: XHTML.validTag is not a function
- video calls HOT 1
- When chatting in multiple groups, Message loss
- When chatting in multiple groups, Message loss HOT 4
- Invalid Token with OAuth HOT 1
- SCRAM-SHA-1-PLUS + SCRAM-SHA-256-PLUS + SCRAM-SHA-512-PLUS + SCRAM-SHA3-512(-PLUS) supports
- TypeError: Cannot read properties of null (reading 'send')
- How to send raw xml string over the connection ?
- Detach old upstream HOT 3
- How to resume a stream as specified in XEP-0198 Stream management ?
- New release build? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from strophejs.