Deploying Remix + Express

I’m trying to deploy my Remix app with a Node + express backend so that I can use socket.io. It’s based off examples/socket.io at main · remix-run/examples · GitHub, which is the official Remix example.

My question is, what port/url am I going to be able to connect to for the socket?

This is all assuming Docker will build my Remix + Express app :/.

You can attach them to the same port, just connect with something like:

const io = io()

That will connect to the default hostname and port. For me it works on local, but for me it doesn’t work when the app is deployed.