Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias Expr Call NameLoad Str keyword Num keyword Str keyword NameLoad ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad Assign NameStore Call NameLoad keyword Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad Assign NameStore ListLoad Assign NameStore Num FunctionDef arguments args NameParam defaults body Return Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareGt Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice UnaryOpUSub AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str Str Call NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A Simplified chat demo for websockets.

Authentication, error handling, etc are left as an exercise for the reader :)
 N/A logging N/A tornado.escape N/A tornado.ioloop N/A tornado.options N/A tornado.web N/A tornado.websocket N/A os.path N/A uuid tornado.options define options N/A N/A define port default 8888 help run on the given port type int Application N/A N/A N/A tornado web Application N/A __init__ N/A N/A self N/A N/A N/A handlers N/A N/A / MainHandler N/A /chatsocket ChatSocketHandler N/A settings N/A dict cookie_secret __TODO:_GENERATE_YOUR_OWN_RANDOM_VALUE_HERE__ template_path N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ templates static_path N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ static xsrf_cookies True N/A N/A N/A N/A super Application self __init__ handlers settings N/A N/A MainHandler N/A N/A N/A tornado web RequestHandler N/A get N/A N/A self N/A N/A N/A N/A N/A self render index.html messages N/A ChatSocketHandler cache N/A N/A ChatSocketHandler N/A N/A N/A tornado websocket WebSocketHandler N/A N/A waiters N/A set N/A cache N/A N/A cache_size 200 get_compression_options N/A N/A self N/A N/A N/A N/A N/A open N/A N/A self N/A N/A N/A N/A N/A N/A ChatSocketHandler waiters add self N/A on_close N/A N/A self N/A N/A N/A N/A N/A N/A ChatSocketHandler waiters remove self N/A update_cache N/A N/A cls chat N/A N/A N/A N/A N/A N/A cls cache append chat N/A N/A N/A len N/A cls cache N/A cls cache_size N/A N/A N/A cls cache N/A N/A cls cache N/A N/A N/A cls cache_size N/A classmethod send_updates N/A N/A cls chat N/A N/A N/A N/A N/A logging info sending message to %d waiters N/A len N/A cls waiters N/A waiter N/A cls waiters N/A N/A N/A N/A N/A N/A waiter write_message chat N/A N/A N/A N/A N/A N/A logging error Error sending message exc_info True N/A classmethod on_message N/A N/A self message N/A N/A N/A N/A N/A logging info got message %r message N/A parsed N/A N/A N/A tornado escape json_decode message N/A chat N/A id body N/A str N/A N/A uuid uuid4 N/A parsed N/A body N/A N/A chat N/A html N/A N/A N/A tornado escape to_basestring N/A N/A self render_string message.html message chat N/A N/A N/A ChatSocketHandler update_cache chat N/A N/A N/A ChatSocketHandler send_updates chat N/A N/A main N/A N/A N/A N/A N/A N/A N/A N/A tornado options parse_command_line N/A app N/A Application N/A N/A N/A app listen N/A options port N/A N/A N/A N/A N/A N/A N/A tornado ioloop IOLoop current start N/A N/A N/A __name__ __main__ N/A N/A N/A main