This is an advanced fully working example, AWS compatible, Websockets based chat application written in Node.js and React. Comments can be added, removed and edited, all being reflected in real-time in all participant browsers using the same application URL. Also, the pre-typed text is (optionally) previewed in real-time in all other participants browsers.
- Clone this repo and cd into it.
- Run
node app.js
- Run
npm start
- Use the link with a title: http://localhost/comments/?title=test_room
- or possibly for a pre set user: http://localhost/comments/?title=test_room&name=jonny
- also browse : http://localhost/monitor
Aryeh Tuchfeld (relion)
based on QCode.in tutorial.
chat, comments, solved, working, full-stack, react, node.js, websocket.
For testing the Notifications on real hostname, you can enable: Insecure origins treated as secure in chrome://flags/ or (when available) simpliy right click here:
-
The WebSocket Server is set to port: 3030 (you can choose a differnt number).
-
See my video instructions on How to Configure the Node.js with WebSocket on AWS Elastic Beanstalk: