×
×

Base De Conhecimento & Downloads

A Base de Conhecimento fornece documentação escrita pela nossa equipe. Por favor selecione a categoria ou pesquise por questões.

Articles

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:
ws://alias.jvmhost.net:PORT_NUMBER_HERE/examples/websocket/echoMessage
ws://alias.jvmhost.net:PORT_NUMBER_HERE/examples/websocket/echoStream
as you cannot use default port 80 on a shared IP with WebSocket protocol.


Powered by HostBill