Show HN: A Unixy approach to WebSockets
I had come across websocketd a while ago, and to try it out, wrote a simple Python program and a web page. The two posts about it are here:<p>1. Use WebSockets and Python for web-based system monitoring:<p><a href="http://jugad2.blogspot.in/2014/01/use-websockets-and-python-for-web-based.html" rel="nofollow">http://jugad2.blogspot.in/2014/01/use-websockets-and-python-...</a><p>2. websocketd and Python for system monitoring - the JavaScript WebSocket client:<p><a href="http://jugad2.blogspot.in/2014/01/websocketd-and-python-for-system.html" rel="nofollow">http://jugad2.blogspot.in/2014/01/websocketd-and-python-for-...</a><p>Note: As it says in one of the posts, you have to:<p>set PYTHONUNBUFFERED=true<p>for the Python program to work as a websocket server, though it works fine without that if only run directly at the command line (without websocketd). Thanks to Joe for pointing this out.<p>websocketd is a nice utility.