Hello! Please tell me what hosting is needed so that you can run, for example, chat using the websocket protocol? To make the team work, like this:

var socket = new WebSocket("ws://mysite.com:8080"); 
  • It worked for me, but I don’t know if this is correct: var socket = new WebSocket ('ws: //echo.websocket.org'); - Vladimir

2 answers 2

Such on which you can launch own application supporting connections on ws. Apache seems to be able to relay ws connections - mod_proxy_wstunnel. Accordingly, hosting where there is such a module may suit you. But I personally wrote separate application services.

    For chat, the ideal hosting option is node.js.