by Aaron Frost
I would like to cover some real world applications of a webworker and of a websocket. I want to go over times when it would be appropriate to use a websocket instead of using ajax. I would like to go over a simple demo, and have people participate by building their own WebSocket client. A possible second class could be a more advanced class of setting up a Node.js Websocket/Socket.IO server and building a game to use it.
Also, I would like to talk about the Socket.IO library, showing people how to use it and explaining the advantages of it vs. native websocket stuff.
Using mobile gyroscope APIs, web sockets, and canvas I built a Nintendo Wii style, multiplayer bowling game. The code is relatively simple and the libraries and techniques can easily be applied to other work related projects.
I will dig into the code for accessing mobile APIs for accelerometer, gyroscope, and touch. I will show the simple code used to handle web sockets in node using Socket.io. And finally I will show how box2d will calculate physics and render object collisions.
1st June 2012