Ever wonder how location tracking on your favourite delivery application worked? Or how some websites were able to display real-time data in a matter of Zeptoseconds?
Alright, maybe information isn’t displayed that quickly but on average a single WebSocket request (using Socket.io) takes around 83 milliseconds compared to 107 milliseconds for an HTTP request. This may not seem like a significant difference but once we start examining the time it takes for multiple parallel requests, the time difference becomes striking.
WebSockets allow us to build real-time features by establishing a two way connection between a client and a server.
Full-stack web developer