📜  socketio.run 中的 debug=true - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:49.598000             🧑  作者: Mango

代码示例1
app = Flask(__name__)
app.debug = True
app.config.from_object(settings)



if __name__ == "__main__":
    monkey.patch_all()
    listen_address = '0.0.0.0'
    listen_port = 5000
    print 'Starting Server on: http://{0}:{1}'.format(listen_address, listen_port)
    SocketIOServer((listen_address, listen_port), app, resource="socket.io").serve_forever()