Closed
Description
Is this a bug report?
No
Hello, I have some server side code including sockets.io server compoent that should run in the background. Currently it runs outside as a separate process, but as it's integral to the react app, I would like to host it in same process, listening to a URI (e.g. /socket.io/). I don't want it to be proxied through as in this guide.
Is there a canonical create-react-app way to achieve this?
Activity
heyimalex commentedon Feb 22, 2018
Pretty sure that running in a separate process and connecting either directly or through the proxy is the canonical create-react-app way. It sounds like it's working for you, what's wrong?
Timer commentedon Mar 5, 2018
You are responsible for running these things yourself as we do not handle applications in production.
If you are talking about DX, use something like
concurrently
ornpm-run-all
to start your scripts at the same time with one command.