H. Saleh H. Saleh - 3 months ago 13
Ajax Question

Whatsapp web: Speed

When i scan the Whatsapp code on my phone, the website switches IMMEDIATELY to the actual whatsapp page with the chats and all. I was wondering, how does the whole process look like? When i scan, my mobile probably recognized the code that's stored on the server and sends an Ajax request, but then how does the browser realizes that the server received the request? is there some kind of "reverse Ajax" request from server to client? It happens so fast it's astonishing, and i really want to know what's up (heyoo sorry for the pun).

Thanks for responses in advance!

Answer Source

I did not check their code but it must be WebSockets.