- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hello community,
i'm currently developping an app that support XMPP using StropheJs
When i build, then install manually, it works fine, it can connect to BOSH server.
The problem is when I debug it through XDK, it stuck on the Connecting state.
Weirdly I have answer 200 on hxr POST request to the bosh server.
Anyone can help ?
Thank you very much.
- Balises:
- HTML5
- Intel® XDK
Lien copié
4 Réponses
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Are you debugging your project with the Emulate Tab or the Debug Tab?
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
With the debug tab.
It's working fine on the emulate tab but i have to use debug tab because i have cordova plugins too.
Thanks
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
What do you mean by it getting stuck if you received a response?
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
It is designed like that :
onConnect : function(status){
if (status === Strophe.Status.CONNECTING) {
Chat.log('Strophe is connecting.');
}
else if (status === Strophe.Status.CONNFAIL) {
Chat.log('Strophe failed to connect.');
}
else if (status === Strophe.Status.DISCONNECTING) {
Chat.log('Strophe is disconnecting.');
}
else if (status === Strophe.Status.DISCONNECTED) {
Chat.log('Strophe is disconnected.');
}
else if (status === Strophe.Status.CONNECTED) {
Chat.log('Strophe is connected.');
}
}
Emulator or build give me connecting then connected then continue with the code.
Debug is stuck at connecting
Répondre
Options du sujet
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable