Could be fun to play around with: Writing a WebSocket server in Java
I came across this in an email from MDN, which had a link to the following glitch projects.
[quote]Enjoy a new websockets learning toy
Want to learn more about how and why to use websockets? Potch is a longtime Mozillian and frequent Hacks Blog contributor. He has created five Glitch projects to help you.