Socket.io is event-based. Both server and client emitting an event and listening to events from each other. (It is like we set an OnClickListener for our button in android.) A simple HTTP handshake takes place at the beginning of a Socket.IO connection.
What is the difference between socket IO and WebSocket?
Key Differences between WebSocket and socket.io