Hello,
I'm considering using Hunchentoot as a server for client applications that connect with the server over full-duplex http socket connections (such as Flash applications using XMLSocket). The general idea is that the server can send messages to the client at its own initiative and not only as a reply to a request.
Having looked at the documentation and some aspects of the code, I gather that there is no such functionality by default, but that it should not be too difficult to integrate in Hunchentoot.
If possible could you please roughly outline what you would consider to be a 'good' approach to attain this objective such that it would nicely fit in the existing design philosophy?
Thanks in advance
regards
Wouter Van den Broeck
On 10/5/07, Wouter Van den Broeck wouter@csl.sony.fr wrote:
Hello,
I'm considering using Hunchentoot as a server for client applications that connect with the server over full-duplex http socket connections (such as Flash applications using XMLSocket). The general idea is that the server can send messages to the client at its own initiative and not only as a reply to a request.
Having looked at the documentation and some aspects of the code, I gather that there is no such functionality by default, but that it should not be too difficult to integrate in Hunchentoot.
If possible could you please roughly outline what you would consider to be a 'good' approach to attain this objective such that it would nicely fit in the existing design philosophy?
According to this documentation: http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/ac... XMLSocket is not a HTTP based protocol. So instead using Hunchentoot , you should consider writing your own socket server. XMLSocket protocol is quite simple, it should be hard.
Hi, I use both Hunchentoot regularly and a custom Lisp server for communicating with Flash via the XMLSocket. They really don't have very much in common, and I can confirm that what Rafal said is true; it is pretty simple to write the XMLSocket server from scratch. My most basic one is about 150 lines of code, and it was one of my first Lisp projects.
-austin