On 11/27/2012 09:04 AM, Wolfgang Schnerring wrote:
Hi,
* Alex Leach <albl500@york.ac.uk> [2012-11-25 20:00]:
I was wondering if anyone has implemented a WebSockets server API using the zope toolkit? I've just submitted a blueprint on Launchpad (https://blueprints.launchpad.net/zopetoolkit-project/+spec/websockets-api), but thought it might be quicker and easier to discuss how one could do this here.
I'm not too familiar with WebSocket internals, but one thing that stuck with me is that you'll need to keep *lots* of open connections, which is only feasible with an eventloop-based server (which zope.server, for one, isn't).
Apart from that, I'm not sure what features remain, and where a proper home in the ZTK world would be.
At our company we've scheduled a project to integrate WebSockets into a large Zope3-based application for early next year, so we'll definitely will be doing *something* in that space -- we just don't know what, yet. ;)
What functionality did you have in mind that the ZTK might grow?
Wolfgang
Some investigations and trials showed about half a year ago that a Autobahn + Twisted + pyramid combination worked. YMMV -- Best regards, Adam GROSZER -- Quote of the day: "Nobody can hurt me without my permission." (Mohandas Gandhi)