News for hackers. Stuff that matters.
Re:Ask HN: Help me learn websockets. by pjscott on Thursday October 06, 2011 @03:42AM (#3079370)
Any time you want to be able to send messages between the browser and a server, websockets are an easy and efficient way to do it. Of course, not all browsers support them, so it's good if you can fall back to long polling. If you just want to get started hacking, socket.io is a surprisingly slick abstraction layer:

http://socket.io/

Re:Ask HN: Help me learn websockets. by anujkk on Thursday October 06, 2011 @04:26AM (#3079437)
Socket.io is nice but it requires nodejs at server side that I'm unable to use right now for some reasons. Is there any python/php alternative available?
Re:Ask HN: Help me learn websockets. by pjscott on Thursday October 06, 2011 @02:00PM (#3080975)
The best Python alternative looks like TornadIO:

https://github.com/MrJoes/tornadio

Does the same stuff as Socket.IO, but in Python. Probably not as widely used as Socket.IO, but it looks really nice.