How does Socket.io really work? I downloaded a simple node chat app to check it out, and under google chrome's network tab I inspected the HTTP requests. For a proper update of the chat, one can only assume that my javascript on client-side will keep sending constantly http requests checking out if there are any updates chat, but it doesn't show any requests sent and yet still - when I send a message on a different tab i can see an update on my tab.
https://github.com/lcristianiim/chat-app
I'd also love to know the basics of sockets.io, such as what happens once a user disconnects? Thanks!