Express is an application server. You define routes and write code to create your application pages or API responses. It is basically a port of a ruby project called Sinatra. It works for the traditional HTTP request / response model.
Socket.io helps you implement a push server model for real-time functions, such as alerts / notifications, chats, or any other updates you want to make if you want them to appear in the browser without waiting for the user to click the Refresh button or something like that.
source
share