gunicorn gevent websocket 1

gunicorn gevent websocket

gunicorn -k "geventwebsocket.gunicorn.workers.GeventWebSocketWorker" wsgi:websocket_app

Here is what the above code is Doing:
1. We’re importing the Flask class from the flask module.
2. We’re creating a new instance of the Flask class.
3. We’re defining the basic route / and its corresponding request handler index().
4. We’re defining the function index() which returns the message ‘Hello world!’.
5. Finally, we’re running the app on port 5000 in debug mode.

Similar Posts