Compare Twisted and Socket.io compares apples with a truck with apples. Twisted is a library that provides event-oriented programming functionality in Python. In javascript, it's just javascript itself (be it node.js or a web browser or even a rhino).
A more suitable comparison is comparing Socket.io on node.js with Socket.io in Python. While there is one basic socket.io server implementation on node for Python, there are several:
(taken from socket.io wiki: https://github.com/learnboost/socket.io/wiki )
You can even implement your own socket.io in Python using Twisted if you want. The socket.io protocol is described here: https://github.com/LearnBoost/socket.io-spec . But that will defeat the purpose of socket.io - it abstracts real-time low-level data about web communications and lets you focus on writing your business logic.
On the client side, you must deploy the same socket.io script in the browser, no matter what language you decide to record the server in.
As to which language to choose: my rule of thumb is to choose the language with which you are most comfortable. You will have enough trouble debugging your business logic. Do not obstruct it using an unfamiliar language.
Both languages ββare held together by battle (yes, even node.js, which is surprising considering how young he is). For example, Python is used in high traffic services such as Dropbox. node is currently used for high traffic services like LinkedIn mobile.
source share