MCPcopy Create free account
hub / github.com/miguelgrinberg/python-socketio / main

Function main

examples/server/tornado/fiddle.py:31–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30
31def main():
32 parse_command_line()
33 app = tornado.web.Application(
34 [
35 (r"/", MainHandler),
36 (r"/socket.io/", socketio.get_tornado_handler(sio)),
37 ],
38 template_path=os.path.join(os.path.dirname(__file__), "templates"),
39 static_path=os.path.join(os.path.dirname(__file__), "static"),
40 debug=options.debug,
41 )
42 app.listen(options.port)
43 tornado.ioloop.IOLoop.current().start()
44
45
46if __name__ == "__main__":

Callers 1

fiddle.pyFile · 0.70

Calls 1

startMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…