This project folder contains the code for both the server and client. There's about 40 lines of js in the server, and 100 in the client.
Both of them use the w3cwebsockets library.
The client app uses React with class components, and React components from the Ant Design library.
To use the project:
- Go to the webSocketServer folder
- npm install
- npm run start
- keep the server running
- Go to the webSocketClient folder
- npm install
- npm run start
Open http://localhost:1992 in multiple tabs, log in and send and see messages flowing between the tabs as you send them in each