yield 'data: %s\n\n' % message['data']

@app.route('/post', methods=['POST'])
def post():
    message = flask.request.form['message']
user = flask.session.get('user', 'anonymous')
now = datetime.datetime.now().replace(microsecond=0).time()
red.publish('chat', '[%s] %s: %s' % (now.isoformat(), user, message))

@app.route('/stream')
def stream():
    return flask.Response(event_stream(), mimetype='text/event-stream')
How to implement server push in Flask framework?