Flash/Neko Chat Example

Here's a small code example showing how you can quickly develop a Realtime Chat using a haxe/Flash Client and a haxe/Neko commandline Server that communicates using haXe Remoting. This package contains the following files :

  • ClientApi.hx : the API that the Server can call on the Client
  • ServerApi.hx : the API that the Client can call on the Server
  • Client.hx : the haxe/Flash Client Implementation, uses XMLSocket
  • Server.hx : the haxe/Neko Server Implementation, uses ThreadRemotingServer
  • app.hxml : the HXML file to compile the project
  • server.n and server.bat : neko binary and batch file to start the server
  • client.swf and client.html : the precompiled flash client.

Please open the HTML after starting the server and follow the instructions. The source code is very small (4 KB) and should be a good start for people wanting to develop realtime applications.

Download the sources

version #4683, modified 2008-10-10 12:44:33 by rigard