sockjs.tornado.migrate

sockjs.tornado.migrate

tornado.websocket to sockjs.tornado migration helper.

class sockjs.tornado.migrate.WebsocketHandler(session)[source]

If you already use Tornado websockets for your application and want try sockjs-tornado, change your handlers to derive from this WebsocketHandler class. There are some limitations, for example only self.request only contains remote_ip, cookies and arguments collection

open()[source]

open handler

on_open(info)[source]

sockjs-tornado on_open handler