• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Question for Scott Mattocks: which frameworks support web sockets?

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author
Posts: 7
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Scott.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic