I have a python script implementing a small websocket server and some processing I need. This script has a web page as frontend that is bidirectionally connected to the script by websocktes, through this page I can control the processing that happens in the python script. It would be nice for me, not having the python script always running and listening for a connection from the web page, but having the script started only when it is really needed that is when the web page frontend is requested to the apache server by a browser. I hope to have been clearer, thanks. 2018-03-20 13:02 GMT+01:00 Eric Covener <covener@xxxxxxxxx>: > On Tue, Mar 20, 2018 at 7:55 AM, area234 <area234@xxxxxxxxx> wrote: >> I am trying to use websockts to make an html page interactive with a >> python script. So, when this page is requested, I wish to start the >> python script to connect it with the html page. Since, the script >> communicates with the html page by websockets, no I/O is requested >> with apache server. > > Can you rephrase or elaborate? If a client sends a HTTP request or > creates a websockets connection to Apache, and you want to handle it > with a script, your script has to communicate with/via Apache. > > I don't think the script "communicating to the html page" is a good > model of what's happening. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx