I need to refactor some code that makes use of socket.io. This code was initially written by someone else. To better understand it, I decided to go through the Get Started page on socket.io’s website, which involved creating a basic chat application. I’m kind of amazed by how easy it was.
In the beginning, the tutorial says,
In this guide we’ll create a basic chat application. It requires almost no basic prior knowledge of Node.JS or Socket.IO, so it’s ideal for users of all knowledge levels.
You can create a chat application with maybe 25 lines of your own JavaScript and a skeleton of an HTML page. It feels easier to write a basic chat application with socket.io than to set up an app.module.ts
file in Angular.