is it possible to use flask_socketio with connexion?

喜欢而已 提交于 2020-04-30 08:47:15

问题


I have a django app (frontend) which sends requests to a connexion api (backend). Now I want to add info to the user to know the progression of the request in real-time upon making a request to my api.

Example: from my django app, if I submit a form it will launch a request via requests.post and will show me some text ( ie: creating, deleting, updating ...)

I tried using flask-socketio but I found no example of how it could be done. (connexion with socketio)

PS: I want to use connexion for my api but it there is something else to use instead of socketio I don't mind


回答1:


I don't think you can. There is an open question in the connection repository https://github.com/zalando/connexion/issues/832 since 2018 unsolved.



来源:https://stackoverflow.com/questions/61299505/is-it-possible-to-use-flask-socketio-with-connexion

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!