p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional XMPP Programming with JavaScript and jQuery (http://p2p.wrox.com/forumdisplay.php?f=542)
-   -   Has anyone successfully used Strophe.Status.DISCONNECTING object? (http://p2p.wrox.com/showthread.php?t=93283)

drayarms July 16th, 2014 07:24 PM

Has anyone successfully used Strophe.Status.DISCONNECTING object?
 
I'm trying to use the Strophe.Status.DISCONNECTING object to notify other users in a multiplayer game when someone unexpectedly goes offline. It doesn't work though. So far I've used all the other status objects(CONNECTION, AUTHIENTICATING, AUTHFAIL etc) successfully. Anyone facing the same problem?

Code:




                            var conn = new Strophe.Connection( 

                        "http://bosh.metajack.im:5280/xmpp-httpbind");

                            conn.connect(data.jid, data.password, function (status) {

                                if (status === Strophe.Status.DISCONNECTING {

                                          //Do something

                                }


                          });


JPassion July 20th, 2014 12:10 PM

: Practically free ($139 or less) 5-day Ruby on Rails h ands-on training (July 21,22,
 
Practically free 5-day Ruby on Rails hands-on training from JPassion.com

-July 21st, 2014 (Monday)-25th(Friday) 10:00AM-4:30PM EDT (New York time) 7:00PM-2:00AM (India time)
-Registration: https://www3.gotomeeting.com/register/252842014
-Pre-requisites: Some programming experience

Topics we are going to cover include the following

-Ruby/Rails Installation
-Ruby Basics I
-Ruby Basics II
-Ruby Blocks
-Ruby Meta-programming
-Rails Basics
-Scaffolding
-Configuration
-Action Controller Basics
-Routing
-Active Record I
-Active Record II
-Active Record Associations
-Action View Form Helpers
-Ajax and JavaScript
-CoffeeScript
-Asset Pipeline
-Action View HAML
-Authentication (using "devise")
-RSpec I
-RSpec II
-Deployment (focused on Cloud)
-Caching

As always, the course contents and codecamps are free to attend for paying
members of JPassion.com. For other upcoming codecamps from JPassion.com,
please see the following link

http://jpassion.com/codecamps

If you want to know what it's like to attend JPassion.com codecamps,
please see the testimonials from the actual attendees of our previous
codecamps.

http://jpassion.com/testimonials

Thanks much.


All times are GMT -4. The time now is 07:20 PM.

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