Error

werkzeug.routing.WebsocketMismatch: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand.

Solution

1: Downgrade Flask and Werkzeug versions pip install flask==1.1.1 pip install Werkzeug==1.0.1 2 Try to install flask_sockets package pip install flask_sockets