Socket.IO is an awesome library for NodeJS for making games and chat apps relying on WebSocket protocol. Web browsers supporting WebSockets at the time of this writing are Chrome, Safari and Firefox 4 beta, and Opera 10.70 beta Other browsers can use WebSocket over Flash or other methods (XHR Pooling, XHR Streaming, forever IFrame). In this article I will show you how I connected AIR app to Socket.IO-Node chat demo using WebSocket over Flash library made by Hiroshi Ichikawa.
Requirements:
- for the Server
- for the Server
- nodejs - NodeJS
- socket.IO-node - http://github.com/LearnBoost/Socket.IO-node
- for the Client
- FlashDevelop - http://www.flashdevelop.org/
- web-socket-js - http://github.com/gimite/web-socket-js
- 3rd party lib - https://github.com/mikechambers/as3corelib
UPDATE - github source -> here