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 <[email protected]> wrote:
> danny gave the link to the project however you can read alexandre
> 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 <[email protected]> wrote:
>
>
>
>
>
>
>
> > On Fri, Dec 2, 2011 at 7:38 PM, Etienne <[email protected]> wrote:
> > > Hi,
>
> > > the example provided in stargate documentation:
> > >http://boothead.github.com/stargate/examples.html
> > > works well on my mac with chrome but not with firefox6/8.
> > > -- Is there a way of making stargate work with Firefox?
> > > -- Are there other way to use websockets in a pyramid application?
> > > (only
> > > 1 port).
>
> > > Thank you,
> > > Etienne
>
> > 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 message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to