Jump to content

Recommended Posts

Posted

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

Posted
9 hours ago, Krydos said:

What port is the websocket listening on?

3000

domain: genrwork.helioho.st

  • Krydos changed the title to Does Tommy Server Not Support WebSocket Upgrades?
Posted

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

  1. The process that is going to be listening for websocket requests is already running.
  2. Let us know your username.
  3. Let us know which domain or subdomain you want to be the websocket.
  4. 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.

Guest
This topic is now closed to further replies.
×
×
  • Create New...