R
Railway12mo 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
Percy12mo ago
Project ID: N/A
Fragly
Fragly12mo ago
N/A
Brody
Brody12mo ago
you can absolutely do both on one port
Fragly
Fragly12mo ago
oh I can? :o thank you, I didn't know that
Brody
Brody12mo ago
rest api on route /api websockets on route /ws
Fragly
Fragly12mo ago
that makes sense, thank you 🙏
Brody
Brody12mo ago
no problem