Situation


When trying to connect with a web browser, you are confronted to this error message: 

HTML5 Internet Access
Establish connection v7.54 ...
6 secs. (xhr-polling)


You might be using a VPN and a reverse proxy.


Solution


It is possible to use servers behind reverse proxies via xhr-polling, with some limitations.

 

Websockets are not part of the HTTP protocol, even if the first HTTP request looks like an HTTP request, actually, it isn't, therefore most known reverse proxies do not support WebSockets and drop many important areas of the first WebSocket request.


If you know that the server is behind a reverse proxy, disable Websockets by setting this option in the file settings.js

located in C:\Program Files (x86)\TSplus\Clients\www\software\html5\


Open settings.js with a notepad and change this value to "true":

disablewebsocket = true;

Then save the file and restart the TSplus web server from the HOME tab of the AdminTool.


That will enforce the usage of XHR-polling and avoid time delays when connecting.


If you do not have a file named "settings.js" in the
"C:\Program Files (x86)\TSplus\Clients\www\software\html5" folder, 

then your TSplus version is older and this documentation does not apply. 

Please update your system first or contact support.


Please note that the usage of XHR-polling is not as stable as Websockets due to its connection nature.