Summarizing the answer shared by Ziggy Zulueta - Thanks for sharing the solution that worked for you with the community. It's much appreciated. Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others"
Scenario:
Provisioning simple chat app/Flask SocketIO to Azure App Service WebApp.
Issue:
Upon deploying the chat app to Azure App Service, the expected functionality, which echoes user inputs in the chat, is not working as intended. The app functions correctly on localhost. However, after deploying it to Azure App Service, while the HTML page displays, there is no response or functionality when users input messages in the chat interface.
Resolution:
Ziggy Zulueta was able to solve the problem by adding this line in the Startup command of the webapp: gunicorn -k eventlet -w 1 app:app
as shown below:
In addition, SocketIO was modified accordingly in the code:
socketio = SocketIO(app, async_mode='eventlet')