Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareNotIn NameLoad AttributeLoad NameLoad attr body Print Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Print Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Print Call AttributeLoad Str attr NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Print Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Print Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Print Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr
N/A N/A sys twisted.internet reactor twisted.python log twisted.web.server Site twisted.web.static File autobahn.twisted.websocket WebSocketServerFactory WebSocketServerProtocol listenWS BroadcastServerProtocol N/A WebSocketServerProtocol N/A onOpen N/A N/A self N/A N/A N/A N/A N/A N/A self factory register self N/A onMessage N/A N/A self payload isBinary N/A N/A N/A N/A isBinary N/A N/A msg N/A N/A {} from {} format N/A N/A payload decode utf8 N/A self peer N/A N/A N/A N/A self factory broadcast msg N/A connectionLost N/A N/A self reason N/A N/A N/A N/A N/A WebSocketServerProtocol connectionLost self reason N/A N/A N/A N/A self factory unregister self N/A N/A BroadcastServerFactory N/A WebSocketServerFactory N/A N/A 
    Simple broadcast server broadcasting any message it receives to all
    currently connected clients.
     __init__ N/A N/A self url N/A N/A N/A N/A N/A WebSocketServerFactory __init__ self url N/A N/A self clients N/A N/A N/A self tickcount 0 N/A N/A N/A self tick N/A tick N/A N/A self N/A N/A N/A N/A self tickcount 1 N/A N/A N/A self broadcast N/A tick %d from server N/A self tickcount N/A N/A N/A reactor callLater 1 N/A self tick N/A register N/A N/A self client N/A N/A N/A N/A client N/A self clients N/A N/A N/A N/A registered client {} format N/A client peer N/A N/A N/A N/A self clients append client N/A unregister N/A N/A self client N/A N/A N/A N/A client N/A self clients N/A N/A N/A N/A unregistered client {} format N/A client peer N/A N/A N/A N/A self clients remove client N/A broadcast N/A N/A self msg N/A N/A N/A N/A N/A broadcasting message '{}' .. format msg N/A c N/A self clients N/A N/A N/A N/A c sendMessage N/A N/A msg encode utf8 N/A N/A N/A message sent to {} format N/A c peer N/A N/A BroadcastPreparedServerFactory N/A BroadcastServerFactory N/A N/A 
    Functionally same as above, but optimized broadcast using
    prepareMessage and sendPreparedMessage.
     broadcast N/A N/A self msg N/A N/A N/A N/A N/A broadcasting prepared message '{}' .. format msg N/A preparedMsg N/A N/A self prepareMessage msg N/A c N/A self clients N/A N/A N/A N/A c sendPreparedMessage preparedMsg N/A N/A N/A prepared message sent to {} format N/A c peer N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A log startLogging N/A sys stdout N/A ServerFactory BroadcastServerFactory N/A factory N/A ServerFactory ws://127.0.0.1:9000 N/A N/A factory protocol BroadcastServerProtocol N/A N/A listenWS factory N/A webdir N/A File . N/A web N/A Site webdir N/A N/A N/A reactor listenTCP 8080 web N/A N/A N/A reactor run