server.py 文件源码

python
阅读 16 收藏 0 点赞 0 评论 0

项目:multitude 作者: mesilliac 项目源码 文件源码
def make_app():
    """Create and return the main Tornado web application.

    It will listen on the port assigned via `app.listen(port)`,
    and will run on Tornado's main ioloop,
    which can be started with `tornado.ioloop.IOLoop.current().start()`.
    """
    return tornado.web.Application([
        (r"/connect", ClientSocket),
        (r"/(.*)", tornado.web.StaticFileHandler, {
            "path": "client",
            "default_filename": "index.html"
        }),
    ], debug=True)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号