added a more accurate description for how `express.js` vs `socket.io` are used

pull/4525/head
Frank Elsinga 3 months ago committed by GitHub
parent a1079245cc
commit 80ba0edce4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -166,7 +166,9 @@ npm run start-server-dev
It binds to `0.0.0.0:3001` by default.
It is mainly a `socket.io`-app, but includes `express.js` to serve:
The backend is an `express.js` server with `socket.io` integrated.
It uses `socket.io` to communicate with clients, and most server logic is encapsulated in the `socket.io` handlers.
`express.js` is also used to serve:
- as an entry point for redirecting to a status page or the dashboard
- the frontend built files (`index.html`, `*.js`, `*.css`, etc.)

Loading…
Cancel
Save