2đź‘Ť
Do you want to emit from the Django process to the Flask-SocketIO server? If that’s what you want to do, then on the Django side you need to use a Socket.IO client. For example, this one: https://pypi.python.org/pypi/socketIO-client.
The “emit from an external process” feature of Flask-SocketIO is different. The idea is that you want several server processes to emit to the client. This feature allows the Django server to emit to the client through the Flask-SocketIO server.
From your example, it seems you were expecting the 'cron_failed'
event in your Flask-SocketIO server to run when you emit from Django, but really what you are doing is sending the event of that name to the clients. Maybe what you want is to change the event name to 'cron_failedMsg'
on the Django emit? That’s what the client expects, it seems.