Is it possible to set up a Node.js WebSockets server using DreamHost shared hosting?
I’ve been successful in setting up a simple Node.js application using Passenger on shared hosting. However, when I tried to set up a simple chat app that uses WebSockets, I couldn’t get the WebSockets connection to open. This app is just a test to see if WebSockets are working, and the app works fine on my local machine, but I can’t rule out a dumb mistake. I know the code is running because I’m using “express-ws” and serving both a REST API and WebSockets, and the REST API is working fine, but any attempt to connect to WebSockets fails immediately.
I did some quick searching on Google, and I suspect it probably isn’t possible to set-up a WebSockets server on DreamHost shared hosting, but before I give up I thought I would check with the community to see if perhaps I’m wrong.