Ask coding questions

← Back to all posts
How to run both a flask and a socketio app at the same time
MikeW3

I am making a chat app with flask and flask_socketio, but it seems I cannot do app.run(host='0.0.0.0', port=8080) and socketio.run(app) at the same time. Is even possible to make something like what I want to make? Link to docs:
https://flask-socketio.readthedocs.io/en/latest/getting_started.html

Answered by WWEMONSTERMONST [earned 5 cycles]
View Answer
Voters
MikeW3
Comments
hotnewtop
WWEMONSTERMONST

Hi instead of doing app.run() do socketio.run(app, host='0.0.0.0', port=8080)

MikeW3