Knowledgebase & Downloads

The knowledgebase provides documentation written by our team. Please select a category or search for answers.


Tomcat: Info: WebSocket connection closed

Q: I am gettting "Info: WebSocket connection closed." when testing WebSocket examples included in Tomcat.

A: When your account is hosted on on shared server - in the examples provided by Tomcat and in your own code use the HTTP port of your Tomcat (See Java Control Panel - Ports to find your Tomcat HTTP port number) for example:
as you cannot use default port 80 on a shared IP with WebSocket protocol when an AJP proxy is used to proxy HTTP requests to your Tomcat.

Apache 2.4.5+ includes proxy_wstunnel_module that will allow for use of HTTP proxy with WebSocket backend.

Powered by HostBill