I have a ESP8266 connected as STA client running a WebServer on port 80 and it is working well.
Now I need to have a new URL that streams data endlessly while all other URLs still shall be accessible.
My attempt was to do an endless loop in the WebServer.on ("/stream"... event handler. First writing headers then content and only exit the loop if the client is not connected anymore.
That attempt works well, but as soon as "/stream" is called all other URL's are dead. I've read something about the ESP using only one socket and can only handle one request at a time.
Could anybody give me a clue how to in either case have two WebServer each with its own socket or have a WebServer that keeps the connection to the client open when exiting the URL event handler?
Thank's in advance
Ralph