Does “WhatsApp” use WebSockets or gRPC?
Short answer: No.
What WhatsApp uses
WhatsApp uses a custom messaging protocol built on top of MQTT over TCP/TLS.
What is MQTT?
MQTT (Message Queuing Telemetry Transport) is a lightweight publish–subscribe messaging protocol designed for:
•Low bandwidth networks
•High latency or unreliable connections
•Devices that need to stay connected with minimal battery usage
It was originally built for IoT, but its design fits mobile messaging extremely well.
How it works (high level)
•Each device maintains a persistent TCP connection to WhatsApp servers
•Messages are sent as binary payloads (not JSON)
•Uses acknowledgements to guarantee delivery
•Automatically recovers from network drops
•TLS is used for transport security (along with end-to-end encryption)
Why not WebSockets?
•Extra overhead for mobile networks
•Less battery-efficient at WhatsApp scale
•Not designed for intermittent connectivity
Why not gRPC?
•Best suited for backend microservices
•Not optimized for billions of client connections
•Browsers and mobile apps aren’t its primary target
TL;DR
•Browser apps → WebSockets
•Backend microservices → gRPC
•Massive mobile chat apps → Custom TCP + MQTT-style protocols
That’s how WhatsApp stays fast, reliable, and battery-friendly at scale.