SocketJS
Realtime Sockets in Javascript!
The JS-Bridge to Flash' Socket API

With an embeded .swf file (300 byte).
The Flash API is bridged to Javascript using:

  • FS Commands
  • TCallLabel

    Look at the sourcecode of this file to see how it works! Pretty easy!

  • function SocketConnect(host,port){}
  • function SocketSend(data){}
  • function SocketClose(){}
  • function SocketOnInit(){}
  • function SocketOnConnect(success){}
  • function SocketOnData(data){}
  • function SocketOnClose(){}

  • Limitation?
    Yes, this only works for Flash-Player smaller than version 8! If you are interested to making it V8 compatible then contact me!
    Where to use?
    You might use SocketJS to create multiuser applications.
    Which server should I use?
    You could create one with php`s socket function. Or any other programming language that supports creating socket servers. Make sure you allow the Flash requirement of "\0\n" line endings. There is a nice tutorial avaible.
    Manfred`s Blog   Related Blog Post   Download SocketJS