So we are writing a chat server with a web server and web client using Python twisted.
The chat server is on main process and spawn a new sub process to run the web server and client. The main process (chat server) is required to send/receive events and data to/from sub process (web server n client) to auth connected users and admin websites etc.
This is how, we are spawning sub process for web server/client: reactor.spawnProcess(ProcessProtocolClass_instance, sys.executable*(python exe file), [sys.executable(python exe file)*, 'WebServer.py (full path of web sever client python file)'])
We are not new to python and twisted. Can some one help us to figure out the best way to communicate between main and sub process, spawned with python twisted and running python file on sub process. To send the data time to time.
Thanks.