Re: http real-time update
Hi Yoshi,
You could use chunked HTTP transfer. I know Hunchentoot supports that, but I don’t know exactly how it works, please apologise for this sparse answer.
AFAIK Hunchentoot as a thread based design (please correct me if I’m wrong), so if you expect a lot of “streaming” connections you might want to avoid Hunchentoot and look for an asynchronous IO based web server.
Incidentally I stumbled on Wookie, an asynchronous Common Lisp web server, which looks very promising, getting it inspiration from what happens in the nodejs world:
http://wookie.beeets.com
I plan to test it with LispWorks, though I am not sure how easy it will be to compile it.
Best,
Cam
On 04 Nov 2013, at 19:45, Yoshiharu Iguchi <minisoba@gmail.com> wrote:
>
> Hi LispHug,
>
> I am looking for a way to publish real-time updates over HTTP. My application, which runs on MacOSX / Windows, uses hunchentoot as a backend web server, and currently
> my client requests data every x seconds. It works fine with this but I like to reduce network traffic, and remove unnecessary polling.
>
> I looked at hunchensocket for WebSockets but it seems to be stopped updating.
>
> Are there any ways to achieve real-time communication over HTTP? Ideally, I would like to stick with hunchentoot as a backend web server.
>
> Thanks in advance,
>
> Yoshi
>
> _______________________________________________
> Lisp Hug - the mailing list for LispWorks users
> lisp-hug@lispworks.com
> http://www.lispworks.com/support/lisp-hug.html
>
_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html