ref – https://socket.io/get-started/chat
Assuming you have node, npm, nodemon/gulp installed.
First, make a directory called DesktopApp. Then start the process of creating a node project.
Enter your information for the package.json file.
npm install –save firstname.lastname@example.org
Server can push messages to clients. Whenever you write a chat message, the idea is that the server will get it and push it to all other connected clients.