5 ms·
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.
by irreverentbits 14y 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.
- BarkMore 14y agoNot only is the protocol easy to implement, some Python servers come with WebSocket support. Tornado (http://www.tornadoweb.org/documentation/websocket.html http://www.tornadoweb.org/documentation/websocket.html) and Autobahn (http://autobahn.ws/ http://autobahn.ws/) are examples.
- masklinn 14y ago> 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.
- erichocean 14y agoOut of curiosity, does your hand-rolled Python implementation actually pass this test suite? http://autobahn.ws/testsuite http://autobahn.ws/testsuite