Can flask framework send real-time data from server to client browser?

前端 未结 1 646
南笙
南笙 2021-01-30 23:41

I was wondering how (if at all) flask performs long polling, so the server can send data over a connection to the client. For example if the server receives a twitter feed via t

相关标签:
1条回答
  • 2021-01-31 00:29

    You can do so with the help of gevent+socketio.

    • an example app using Flask with gevent+socketio.
    • a socket.io route in Flask
    • gevent-socketio
    0 讨论(0)
提交回复
热议问题