aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Question for Scott Mattocks: which frameworks support web sockets? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Question for Scott Mattocks: which frameworks support web sockets?" Watch "Question for Scott Mattocks: which frameworks support web sockets?" New topic
Author

Question for Scott Mattocks: which frameworks support web sockets?

Christian Peacock
Greenhorn

Joined: Mar 02, 2010
Posts: 17
Hi Scott,

I'm completely new to web sockets so please forgive me if this is a stupid question, but I was wondering what kind of support is required on the server side and which web frameworks currently provide this? Which of these frameworks does your book cover?

Thanks,
Chris.
Scott Mattocks
Author
Greenhorn

Joined: Mar 26, 2013
Posts: 7
    
    5
Hi Christian,

On the server side, you need something that can negotiate the WebSocket handshake, handle the incoming data and frame the outgoing data properly. There are several implementations available in various languages (http://en.wikipedia.org/wiki/WebSocket#Server_side), but the most popular these days is Socket.io. Socket.io also provides a client side library and several fallback mechanisms. No matter which backend you go with, the logic of the application is still up to you. You have to figure out what data you want to pass and what you are going to do with it.

My book doesn't talk about specific server implementations. It focuses on the JavaScript API on the client side and the protocol itself.

Scott
Christian Peacock
Greenhorn

Joined: Mar 02, 2010
Posts: 17
Thanks Scott.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question for Scott Mattocks: which frameworks support web sockets?
 
Similar Threads
DynaValidatorForm - Double fields are never null!
BeanUtils.populate
doesnt display struts tags in normal html form
identifying multiple actions from a one form
BeanUtils.populate