WebSockets hello world

It’s time for me to learn WebSockets at a coding level, so I whipped up a sample app, client and server, and in the spirit of the JavaScript community, I’ve released them in source for anyone to learn from.

  1. Here’s the server demo app.
  2. And here’s a web page containing the client app.
  3. On the server I use the nodejs-websocket package.

If you have any tips on using WebSockets, leave a comment. I’m a newbie with this stuff, so don’t expect much in the way of support.

Programming note

Most of my blogging is on the liveblog these days. I know I keep doing this, but I’m pretty sure this time the liveblog will transition to becoming the “real” Scripting News. That’s one of the liabilities of reading a blog of a programmer and tinkerer.

You can read the liveblog:

  1. Through its RSS feed.
  2. In the liveblog panel on scripting.com.
  3. On its own standalone page.
Like what you read? Give Dave Winer ☮ a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.