I use hookbox in conjunction with pyramid

You might want to try hookbox http://labs.gameclosure.com/hookbox/ .
Hookbox mailing list is http://groups.google.com/group/hookbox.

hookbox will do long polling if  websocket is not implemented in the browser

I also have a fork at https://github.com/raikage/hookbox and have tried
incorporating all changes by other forks.

Regards,

Dax


On Dec 5, 2011 5:10 PM, "Etienne" <et.mara...@gmail.com> wrote:
Thanks for the links. I've tried to install socket_io but it fails
with gevent.

I will go on using html5 ServerSendEvent as I do with Pylons. The
drawback is there is a lot of useless stream overloading the server.

Could you please tell me how to write for pyramid the equivalent of
the Pylons action of A.Bourget:

   def event_sender(self):
       """Implement a full-blown Event collector and dispatcher"""
       response.headers['content-type'] = 'text/event-stream'
       response.status_int = 200
       def go():
           for x in range(10):
               msg = "data: %s %s\n\n" % (x, time.time())
               time.sleep(2)
               yield msg
       return go()

Thank for your help,
Etienne


On 4 déc, 16:00, Mengu <whalb...@gmail.com> wrote:
> danny gave the link to the project however you...
> bourget's great posts on the subject athttp://
blog.abourget.net/2011/3/09/new-and-hot-stuff-in-the-pylons-pr...

>
> On Dec 3, 12:26 pm, Danny Navarro <j...@dannynavarro.net> wrote:
>
>
>
>
>
>
>
> > On Fri, Dec 2...
> > I think firefox doesn't have support for websockets. You can usehttp://
socket.io/inPyramid withhttps://github.com/abourget/pyramid_socketio

> > Regards,
> > --
> > Danny Navarro  |  http://blog.dannynavarro.net

-- 
You received this messag...

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to