Friday, November 6, 2015 at 12:03 PM

WebSockets hello world in JavaScript

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.

As they say..

Still diggin!

PS: I'm now using WebSockets in the home page for Scripting News, with good results.


Last built: Fri, Nov 13, 2015 at 12:23 PM

By Dave Winer, Friday, November 6, 2015 at 12:03 PM. Don't slam the door on the way out.