Issues with Strophe Javascript API's connection method

Hello,

We have 2 servers, primary and secondary openfire server. when the primary is down we connect to secondary openfire server using the strophe javascript client. we are expecting strophe to return connection failed status code but its getting stuck with connecting status code and abandon’s the connection without proceeding further. we have written the failover code/logic based on the connection fail status code but we are not getting this status. failover logic we have implemented is to attempt 3 times to connect the primary server and failover to the secondary server if prmary is not available. can somebody throw light on this why we see this behaviour and what needs to be tweaked to handle this scenario in the code.

You probably should ask this on the strophe email list.