Monday 1 November 2010

AIR app socket connection to Socket.IO-node server using Web-socket-js flash library

UPDATE 2012 - This article is outdated  please use https://github.com/simb/FlashSocket.IO for connecting Socket IO and Flash/Flex/AS3

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
UPDATE - github source -> here