Hello, I looked for something that fit your needs few days ago and i came across txsockjs and i create a server based on twisted and the https://pypi.python.org/pypi/txsockjs module and i made it in few minutes. really good stuff. Of course the client part have to be written in javascript with sockjs object/api. If you are sure that you just need websocket and websocket only, there are also some pure "websocket" implementation in twisted, or you can probably write your own following the RFC.
For you information there is a kind of flame war on socket.io vs sockjs, i am not sure which one won the fight, but from my read, and only from what i have read, sockjs is more promissing and more supported and more actively maintained. But as i said and based on my experience and preference only, i did a lot of research about what i could use to write web app with websocket support + ajax/comet/long polling technologies and i choose txsockjs. regards. Sofiane Akermoun 2014-01-25 Dustin J. Mitchell <dus...@v.igoro.us>: > As I understand it, socket.io is a browser-side library that uses any > of a number of technologies, depending on its environment, to > communicate with the server. SSE, Websockets, and long polling are > all on the list. Last I looked, though, I didn't see any support for > the negotiation of which of these protocols to use with a Twisted > server. > > If that's changed, I'd certainly be interested! > > Dustin > > On Sat, Jan 25, 2014 at 1:42 PM, Andrew Francis <andrewfr_...@yahoo.com> > wrote: >> Hi: >> >> I searched the archive but couldn't find an answer so here goes: >> I am also new to all this >> >> I need to write a server that receives socket.io requests. I see Twisted has >> support for WebSocket. I also see that the Tornado2 socket.io is used >> alongside Twisted (I didn't know that this was possible). I read that >> socket.io uses WebSocket whenever possible. I have just started to look at >> the js implementation of socket.io and the specification. I am trying to >> gauge how hard is it to write a socket.io protocol/handler. Am I barking up >> the wrong tree? Or do I really need to learn Tornado? >> >> Cheers, >> Andrew >> >> _______________________________________________ >> Twisted-Python mailing list >> Twisted-Python@twistedmatrix.com >> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python >> > > _______________________________________________ > Twisted-Python mailing list > Twisted-Python@twistedmatrix.com > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python -- Sofiane AKERMOUN aker...@gmail.com _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python