Whenever I call a website, the initial template loads immediately, the websocket connection kicks in about 10 seconds later, but then it works okay. It should be much faster. Any hint on what causes this delay ? The browser claims it initiated the connection but there is no answer.
Whenever I call a website, the initial template loads immediately, the websocket connection kicks in about 10 seconds later, but then it works okay. It should be much faster. Any hint on what causes this delay ? The browser claims it initiated the connection but there is no answer.
My code is:
For the website
globals:
setup():
I do not use the callback function. When I send data, I use
webSocket.broadcastTXT( s.c_str());
to send a JSON string.