R
Railway17mo ago
Fragly

using multiple ports in Railway service

I have a project that uses both express.js and websockets, I assume they should use different ports, but as I understand- you can only use the port railway gives you. Can I only use one port per service? Meaning I'd have to pick between websockets and REST APIs?
7 Replies
Percy
Percy17mo ago
Project ID: N/A
Fragly
FraglyOP17mo ago
N/A
Brody
Brody17mo ago
you can absolutely do both on one port
Fragly
FraglyOP17mo ago
oh I can? :o thank you, I didn't know that
Brody
Brody17mo ago
rest api on route /api websockets on route /ws
Fragly
FraglyOP17mo ago
that makes sense, thank you 🙏
Brody
Brody17mo ago
no problem
Want results from more Discord servers?
Add your server