I'm not using pyramid, so take this for what it's worth. We use Pylons 1.0 in our setup. However, it shouldn't really matter.
We started our project using hookbox, and it was an excellent resource to get started really fast using websockets / long polling. However - hookbox has some serious architectural limitations that make scaling beyond a single box pretty difficult, so we had to abandon it and made a custom solution using Node.js and socketio. The reason I'm writing this is I would highly recommend looking at socket.io in conjunction with Node.js, as it's a really powerful solution. On Mon, Dec 5, 2011 at 10:22 PM, Raikage <[email protected]> wrote: > 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" <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 [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. > -- Brian O'Connor -- 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.
