Flask-WebSocket =============== WebSockets in Python are really hard. :: from flask import Flask from flask_websockets import WebSocket app = Flask(__name__) @websocket.route('/echo') def echo_socket(ws): while True: message = ws.receive() ws.send(message) @app.route('/'') def hello(): return 'Hello World!' Now they're not.