Hacker News new | ask | show | jobs
by irreverentbits 5024 days ago
WebSocket protocol is pretty easily implemented in pure Python; my co-founder and I did this just recently to support some of our game client functionality.
2 comments

Not only is the protocol easy to implement, some Python servers come with WebSocket support. Tornado (http://www.tornadoweb.org/documentation/websocket.html) and Autobahn (http://autobahn.ws/) are examples.
> Not only is the protocol easy to implement, some Python servers come with WebSocket support.

Even when they don't, it's easy to find. There are both websocket and socket.io implementations available for gevent for instance.

Out of curiosity, does your hand-rolled Python implementation actually pass this test suite? http://autobahn.ws/testsuite