Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > BOOK: Professional XMPP Programming with JavaScript and jQuery
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 10th, 2010, 08:55 PM
Authorized User
Points: 71, Level: 1
Points: 71, Level: 1 Points: 71, Level: 1 Points: 71, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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?
  #2 (permalink)  
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
  #3 (permalink)  
Old June 11th, 2010, 03:47 AM
Authorized User
Points: 71, Level: 1
Points: 71, Level: 1 Points: 71, Level: 1 Points: 71, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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 ;-)
  #4 (permalink)  
Old June 11th, 2010, 08:10 AM
Authorized User
Points: 71, Level: 1
Points: 71, Level: 1 Points: 71, Level: 1 Points: 71, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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!
  #5 (permalink)  
Old June 28th, 2010, 02:25 PM
Wrox Author
Points: 702, Level: 10
Points: 702, Level: 10 Points: 702, Level: 10 Points: 702, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
  #6 (permalink)  
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
  #7 (permalink)  
Old June 28th, 2010, 05:13 PM
Wrox Author
Points: 702, Level: 10
Points: 702, Level: 10 Points: 702, Level: 10 Points: 702, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:59 AM.


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