Ask HN: Help me learn websockets.
I want to learn more about websockets and similar push technologies like polling, long polling etc.
Can you recommend any good resource/book for learning websockets using PHP/Python/JavaScript?
Also, what can be applications other than chat where one can use websockets?
6 comments
[ 4.5 ms ] story [ 14.8 ms ] threadhttp://socket.io/
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.
Example code: https://github.com/facebook/tornado/tree/master/demos/websoc...
1) socket.io 2) faye.jcoglan.com 3) eventmachine 4) xmpp
to use 1&2 is faster & easier, however, for example faye doesn't support event handler currently(but soon in v0.7 )
And faye also kind of hard to extend.
In my opinion, use redis(support pub/sub) & eventmachine (or something like it). to build ur backend.
use websocket-js for client.
:)
At a bank I used to work for they used this technique for a HTML-only trading application. The prices on the screen ticked up and down in real time without a screen refresh being required.