Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question for Scott Mattocks: which frameworks support web sockets?

 
Christian Peacock
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Scott.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic