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 June 10th, 2010, 08:55 PM
Authorized User
 
Join Date: Feb 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default What about controlling robots and using WebSockets?

As far as I can see xmpp is really powerful. So we could use it for much more than IM and social apps.
Lets say we want to control a little robot remotely via web or just monitor some sensor data. Here we'd get into trouble because controlling means sending messages very frequently (eg. every 20 milli seconds) thats quite hard to achieve via HTTP/BOSH. But the upcomming WebSockets might be a solution?!

My question:
Does anybody have some experiments with websockets? Or does anybody though about building a xmpp app with it? And does anybody already used xmpp for other purposes than IM and social apps? What are your motivations to dive into XMPP?
 
Old June 11th, 2010, 01:46 AM
Registered User
 
Join Date: Jun 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Flozzy,

Here is a link showing a demo using XMPP over WebSockets controling a game - from Google Hackaton.

Btw, sending a message every 20ms is not a problem.

Jonas
 
Old June 11th, 2010, 03:47 AM
Authorized User
 
Join Date: Feb 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for the link!

Quote:
Originally Posted by jonas.jacobi View Post
Btw, sending a message every 20ms is not a problem.
Really? Using normal sockets or websockets of course it works, but with HTTP I exposed not. Maybe I just should try it ;-)
 
Old June 11th, 2010, 08:10 AM
Authorized User
 
Join Date: Feb 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

FYI: flXHR slow down your connection dramatically!

Now I use nginx as a proxy so I don't need the "flash hack" any more :) Moreover some strange unpredictable connection errors caused by flXHR I had are history now :) In addition: Using closed source technologies isn't a good idea in most cases ;-)

So my advice: Invest some minutes to setup a proxy instead of getting angry at flXHR!
 
Old June 28th, 2010, 02:25 PM
Wrox Author
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

Quote:
Originally Posted by flossy View Post
Does anybody have some experiments with websockets? Or does anybody though about building a xmpp app with it? And does anybody already used xmpp for other purposes than IM and social apps? What are your motivations to dive into XMPP?
WebSocket is not widely deployed in browsers yet. It would solve your latency concerns as it uses a single socket message passing interface instead of abusing HTTP requests/response semantics to achieve its goals.

There isn't currently a binding for XMPP over WebSocket, but I do plan to work on one, and I'm sure others have been thinking about it as well.
 
Old June 28th, 2010, 05:01 PM
Registered User
 
Join Date: Jun 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by metajack View Post
WebSocket is not widely deployed in browsers yet. It would solve your latency concerns as it uses a single socket message passing interface instead of abusing HTTP requests/response semantics to achieve its goals.

There isn't currently a binding for XMPP over WebSocket, but I do plan to work on one, and I'm sure others have been thinking about it as well.
Agree with metajack, there is currently not a wide adoption of Websockets although it is picking up with Safari 5, Chrome 4, and nightly builds of FF. Microsoft, who knows.

We have implemented support for XMPP over WebSocket and we created this demo site to showcase it - kaazing.me (you can use your Google account to log in and chat). And as metajack states, most likely there are others implementing or working on implementing support for XMPP over WebSocket. Currently it looks like most of the XMPP adoption is within the IM, gaming, and social community. Would love to hear if there is other usecases for XMPP.

Cheers,
Jonas
 
Old June 28th, 2010, 05:13 PM
Wrox Author
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

I'd love to hear how you do the framing for XMPP over WebSocket. That should eventually get written up as an Internet Draft or a XEP.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Cookieless & robots vantoko BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 July 9th, 2007 01:52 AM
PHP Controlling an EXE? ypkumar PHP How-To 2 May 16th, 2006 06:21 PM
Controlling InternetExplorer jamie_t VB How-To 2 March 15th, 2005 07:22 AM
Have robots visited my site angrycat Apache Tomcat 2 February 22nd, 2005 09:50 PM





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