Coder Social home page Coder Social logo

Connection over 3G about strophejs HOT 8 CLOSED

strophe avatar strophe commented on May 18, 2024
Connection over 3G

from strophejs.

Comments (8)

isfarax avatar isfarax commented on May 18, 2024

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.

albanonm avatar albanonm commented on May 18, 2024

@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.

albanonm avatar albanonm commented on May 18, 2024

Other info: The first POST request status is always "pending" on chrome bug review until it set to "failed".

from strophejs.

isfarax avatar isfarax commented on May 18, 2024

is your BOSH server working? and is it being timed out?

from strophejs.

metajack avatar metajack commented on May 18, 2024

It is responding fine for me.

from strophejs.

albanonm avatar albanonm commented on May 18, 2024

@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.

isfarax avatar isfarax commented on May 18, 2024

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.

albanonm avatar albanonm commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.