genwork Posted May 11 Posted May 11 I am trying to use WebSocket together with a regular HTTP server in Node.js. However, when the client attempts to establish a WebSocket connection, the server does not return the expected HTTP [101 Switching Protocols] response. Instead, it returns normal HTTP status codes such as [2xx] or [4xx]. I would like to know whether Tommy Server supports WebSocket upgrade requests or if there is any special configuration required to enable WebSocket connections alongside standard HTTP handling in Node.js
genwork Posted May 12 Author Posted May 12 9 hours ago, Krydos said: What port is the websocket listening on? 3000 domain: genrwork.helioho.st
genwork Posted May 13 Author Posted May 13 hello @Krydos . Is it still not configured? Because I still can't connect to the WebSocket.
Krydos Posted May 14 Posted May 14 I don't see any running process listening on port 3000. Are you sure it's running?
Krydos Posted 1 hour ago Posted 1 hour ago To summarize, yes there are two ways to do a websocket on Tommy. You can set up a reverse proxy with .htaccess on your own, but some software have issues with this method. If that doesn't work for you an admin can set up a Nginx reverse proxy for you. You just need to make sure The process that is going to be listening for websocket requests is already running. Let us know your username. Let us know which domain or subdomain you want to be the websocket. Let us know the port your websocket process is listening on. After we have that information we can set up the Nginx reverse proxy websocket for you.
Krydos Posted 1 hour ago Posted 1 hour ago Closing due to inactivity since there has been no response in this thread for over a week. If you're still having this issue or need help with something else please open a new ticket.
Recommended Posts