It seems a bizarre question but i'm really confused, because when downloaded this example from Tornado i thought that: okey, i run it, and it will work! but the problem, it dident work, because i tested in in Offline mode, and dident have jQuery in cache!
And found this from SO:
Ajax - create connection to server send some data (simplified as get / post), and receive response.
Long poll - create connection to server, send some data, keep connection and receive sometimes from server some data. Connection is kept for short time, and does periodical reconnection. On server side it still dealt like Web Page.
WebSockets - create connection to server, and keep is as long as needed. Server or client can easily brake it. Bidirectional sending of data. WebSockets usually uses masking for each message so data is simply encrypted.
So then, why there is always Javascript under the hood even it's something related to server side?