Best way to pass settings dictionary to torandio.SocketConnection? #23

Closed
vikasuy opened this Issue Jul 9, 2011 · 0 comments

Comments

Projects
None yet
2 participants

vikasuy commented Jul 9, 2011

I would like to pass a settings dictionary to tornadio.SocketConnection. What is the best way?

Right now, I'm passing a settings dictionary to the tornado Application, like below.

application = tornado.web.Application([
    MyRouter.route()
], **settings);

and then I access this settings dictionary inside a subclass of tornadio.SocketConnection with

self._protocol.handler.settings

This seems hacky, Is there a better way to do it?

mrjoes closed this May 7, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment