Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > BOOK: Professional XMPP Programming with JavaScript and jQuery
BOOK: Professional XMPP Programming with JavaScript and jQuery
This is the forum to discuss the Wrox book Professional XMPP Programming with JavaScript and jQuery by Jack Moffitt; ISBN: 978-0-470-54071-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional XMPP Programming with JavaScript and jQuery section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 26th, 2012, 03:29 PM
Wrox Author
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts

As I've said already, those two presence lines are coming from another connection. You will get broadcast every presence change for all resources connected to the server on your same JID.

If you log in as [email protected] two times, each will connect and be assigned different resources (cb533e06 and 6b517963 are the two assigned here, 6b5... is the one for *this* connection). If the other resource disconnects, you will see the presence change to unavailable.

There is nothing you can change in the code to prevent this; this is how XMPP is specified and how implementations behave.

If you have stopped receiving messages at some point, it's probably because you got an exception in a stanza handler or forgot to "return true;" at the end of one. In both cases, the stanza handler will get removed and will not get called on any new messages.
Old November 27th, 2012, 04:35 AM
Authorized User
Join Date: Nov 2012
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts

Hi Metajack,

I will take a close look to my stanza handler and let you know. But thanks for helping me.


Similar Threads
Thread Thread Starter Forum Replies Last Post
"type" attribute in <script> tag Latinsteps BOOK: Beginning JavaScript 4th Edition 2 September 6th, 2011 01:29 AM
MSXSL gives error message for "for" inside "select" ilyaz XSLT 1 December 9th, 2010 05:02 PM
How to theme the "Browse" button of "FileUpload" control? varunbwj BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 October 14th, 2009 01:22 AM
Add a CheckBox DataColumn to my DataGridView, Null format: "" or "True" but Error: F ismailc C# 2005 0 September 25th, 2009 04:56 AM
Reading a files general property of "Type of file" GregSivers Visual Basic 2008 Essentials 7 June 3rd, 2009 09:38 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.