Flask REST and Flask Socket io #1773
-
i tried to emit the response via sockets when there is request in api calls. I have multiprocessed the app and sockets in different ports. i am using postman to check the response . i am able to get response in postman when the socketio.on connect works...but under route the emit is not reflected to the postman..i don't know whether it is a port issue or due to threading ..can u please provide a solution to this problem as soon as possible.
i tried with namespace also the message is not emitted in postman
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@sudhan-c please do not write bug reports on this project unless you have a bug to report. Asking why your application doesn't work doesn't qualify as a bug report. That is what the discussion board is for. Regarding your problem, you cannot use a |
Beta Was this translation helpful? Give feedback.
@sudhan-c please do not write bug reports on this project unless you have a bug to report. Asking why your application doesn't work doesn't qualify as a bug report. That is what the discussion board is for.
Regarding your problem, you cannot use a
socketio
instance in across processes. See the documentation regarding how to emit from an auxiliary process.