Most of your favourite apps update themselves with WebSockets , which are persistent connections between your mobile device and the server. Messages can be transmitted in text or binary both ways.
Read moreWhen should you not use WebSocket?
Avoid using WebSockets if only a small number of messages will be sent or if the messaging is very infrequent . Unless the client must quickly receive or act upon updates, maintaining the open connection may be an unnecessary waste of resources.
Read moreIs WebSocket good for mobile app?
WebSockets can act as a universal hub for transmitting messages between connected mobile and tablet clients . We can implement a native iOS application, which communicates with a WebSocket server just like the HTML5 JavaScript client.
Read moreDoes WhatsApp use WebSockets?
Additionally, Whatsapp uses HTML5 WebSockets which communication technology which facilitates two-way communication.
Read more